Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions yarn-project/aztec-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"dependencies": {
"@aztec/archiver": "workspace:^",
"@aztec/bb-prover": "workspace:^",
"@aztec/bb.js": "portal:../../barretenberg/ts",
"@aztec/blob-client": "workspace:^",
"@aztec/blob-lib": "workspace:^",
"@aztec/constants": "workspace:^",
Expand Down
5 changes: 5 additions & 0 deletions yarn-project/aztec-node/src/aztec-node/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,11 @@ export class AztecNodeService implements AztecNode, AztecNodeAdmin, AztecNodeDeb
): Promise<AztecNodeService> {
const config = { ...inputConfig }; // Copy the config so we dont mutate the input object
const log = deps.logger ?? createLogger('node');

// Initialise the bb.js sync WASM singleton here, before any subsystem runs.
const { BarretenbergSync } = await import('@aztec/bb.js');
await BarretenbergSync.initSingleton();

const packageVersion = getPackageVersion();
const telemetry = deps.telemetry ?? getTelemetryClient();
const dateProvider = deps.dateProvider ?? new DateProvider();
Expand Down
1 change: 1 addition & 0 deletions yarn-project/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,7 @@ __metadata:
dependencies:
"@aztec/archiver": "workspace:^"
"@aztec/bb-prover": "workspace:^"
"@aztec/bb.js": "portal:../../barretenberg/ts"
"@aztec/blob-client": "workspace:^"
"@aztec/blob-lib": "workspace:^"
"@aztec/constants": "workspace:^"
Expand Down
Loading