Skip to content

Commit 971ed39

Browse files
committed
Do not try to prove epoch when we're clearly just proving a block
1 parent 1ad1aa9 commit 971ed39

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

yarn-project/prover-client/src/orchestrator/orchestrator.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,14 @@ export class ProvingOrchestrator implements EpochProver {
893893
provingState.resolve({ status: PROVING_STATUS.SUCCESS });
894894

895895
logger.debug(`Completed proof for block root rollup for ${provingState.block?.number}`);
896-
// validatePartialState(result.inputs.end, tx.treeSnapshots); // TODO(palla)
896+
// validatePartialState(result.inputs.end, tx.treeSnapshots); // TODO(palla/prover)
897+
898+
// TODO(palla/prover): Remove this once we've dropped the flow for proving single blocks
899+
if (this.provingState?.totalNumBlocks === 1) {
900+
logger.verbose(`Skipping epoch rollup, only one block in epoch`);
901+
return;
902+
}
903+
897904
const currentLevel = this.provingState!.numMergeLevels + 1n;
898905
this.storeAndExecuteNextBlockMergeLevel(this.provingState!, currentLevel, BigInt(provingState.index), [
899906
result.inputs,

0 commit comments

Comments
 (0)