Skip to content

Commit

Permalink
fix: refuse to start sequencer without a prover
Browse files Browse the repository at this point in the history
  • Loading branch information
alexghr committed Apr 24, 2024
1 parent 1801db8 commit 7c649e9
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 7c649e9

Please sign in to comment.