Skip to content

Commit

Permalink
fix: refuse to start sequencer without a prover (#6000)
Browse files Browse the repository at this point in the history
Avoids a bad situation where a sequencer node produces empty blocks that fail to validate in the rollup contract.
  • Loading branch information
alexghr authored and TomAFrench committed Apr 24, 2024
1 parent 739ae8c commit 9797eda
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions yarn-project/aztec/src/cli/cmds/start_node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ export const startNode = async (
nodeConfig.disableProver = true;
}

if (!nodeConfig.disableSequencer && nodeConfig.disableProver) {
throw new Error('Cannot run a sequencer without a prover');
}

// Create and start Aztec Node.
const node = await createAztecNode(nodeConfig);
const nodeServer = createAztecNodeRpcServer(node);
Expand Down

0 comments on commit 9797eda

Please sign in to comment.