Skip to content
Merged
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
4 changes: 4 additions & 0 deletions yarn-project/aztec-node/src/aztec-node/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1153,6 +1153,10 @@ export class AztecNodeService implements AztecNode, AztecNodeAdmin, Traceable {
blockNumber,
});

// Ensure world state is synced to the latest block before forking.
// Without this, the fork may be behind the archiver, causing lookups
// (e.g. L1-to-L2 message existence checks) to fail against stale state.
await this.#syncWorldState();
const merkleTreeFork = await this.worldStateSynchronizer.fork();
try {
const config = PublicSimulatorConfig.from({
Expand Down
Loading