From 1463276800bc4edf14a78a83ccbeb6ed046b7412 Mon Sep 17 00:00:00 2001 From: Daniyar Itegulov Date: Thu, 22 Aug 2024 20:54:03 +1000 Subject: [PATCH 1/2] fail when fri prover job is not found --- prover/crates/bin/proof_fri_compressor/src/compressor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prover/crates/bin/proof_fri_compressor/src/compressor.rs b/prover/crates/bin/proof_fri_compressor/src/compressor.rs index dc5ca939d9b4..ce1c603575fd 100644 --- a/prover/crates/bin/proof_fri_compressor/src/compressor.rs +++ b/prover/crates/bin/proof_fri_compressor/src/compressor.rs @@ -136,7 +136,7 @@ impl JobProcessor for ProofCompressor { .get_scheduler_proof_job_id(l1_batch_number) .await else { - return Ok(None); + anyhow::bail!("Failed to find fri prover job for {l1_batch_number}"); }; tracing::info!( "Started proof compression for L1 batch: {:?}", From dabf600a2a10c5074afc96f73a26da2eec13b20f Mon Sep 17 00:00:00 2001 From: Daniyar Itegulov Date: Thu, 22 Aug 2024 21:07:11 +1000 Subject: [PATCH 2/2] Update prover/crates/bin/proof_fri_compressor/src/compressor.rs Co-authored-by: EmilLuta --- prover/crates/bin/proof_fri_compressor/src/compressor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prover/crates/bin/proof_fri_compressor/src/compressor.rs b/prover/crates/bin/proof_fri_compressor/src/compressor.rs index ce1c603575fd..34a2c965a311 100644 --- a/prover/crates/bin/proof_fri_compressor/src/compressor.rs +++ b/prover/crates/bin/proof_fri_compressor/src/compressor.rs @@ -136,7 +136,7 @@ impl JobProcessor for ProofCompressor { .get_scheduler_proof_job_id(l1_batch_number) .await else { - anyhow::bail!("Failed to find fri prover job for {l1_batch_number}"); + anyhow::bail!("Scheduler proof is missing from database for batch {l1_batch_number}"); }; tracing::info!( "Started proof compression for L1 batch: {:?}",