From aaa42ed4d97bf7f3df7c0150669916ae4d2f7e97 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 3b29bb8ee4bb..755115326c5d 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.disableProver && nodeConfig.disableSequencer) { + throw new Error('Cannot run a sequencer without a prover'); + } + // Create and start Aztec Node. const node = await createAztecNode(nodeConfig); const nodeServer = createAztecNodeRpcServer(node);