Skip to content

Commit

Permalink
fix(prover): fail when fri prover job is not found (#2711)
Browse files Browse the repository at this point in the history
## What ❔

Compressor should fail when a corresponding fri prover job is not found.
Unlikely to occur in real world but helps when manually populating DB
for debugging.

## Why ❔

This behaviour makes more sense

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [x] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [ ] Tests for the changes have been added / updated.
- [ ] Documentation comments have been added / updated.
- [ ] Code has been formatted via `zk fmt` and `zk lint`.

---------

Co-authored-by: EmilLuta <[email protected]>
  • Loading branch information
itegulov and EmilLuta authored Aug 22, 2024
1 parent 202abd6 commit 8776875
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prover/crates/bin/proof_fri_compressor/src/compressor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ impl JobProcessor for ProofCompressor {
.get_scheduler_proof_job_id(l1_batch_number)
.await
else {
return Ok(None);
anyhow::bail!("Scheduler proof is missing from database for batch {l1_batch_number}");
};
tracing::info!(
"Started proof compression for L1 batch: {:?}",
Expand Down

0 comments on commit 8776875

Please sign in to comment.