From 7c649e9ca2fc760080f370b005ef433359338453 Mon Sep 17 00:00:00 2001 From: Alex Gherghisan Date: Wed, 24 Apr 2024 13:38:59 +0000 Subject: [PATCH] fix: refuse to start sequencer without a prover --- yarn-project/aztec/src/cli/cmds/start_node.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/yarn-project/aztec/src/cli/cmds/start_node.ts b/yarn-project/aztec/src/cli/cmds/start_node.ts index 3b29bb8ee4b..63a5ab7aa9b 100644 --- a/yarn-project/aztec/src/cli/cmds/start_node.ts +++ b/yarn-project/aztec/src/cli/cmds/start_node.ts @@ -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);