Skip to content

Commit fb8ccd3

Browse files
authored
fix: actually load proof id and increase poll limit (#2183)
1 parent 83f4346 commit fb8ccd3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/chain-listener/src/listener.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ use crate::event::cc_activated::CommitmentActivated;
4747
use crate::event::{ComputeUnitMatched, UnitActivated, UnitDeactivated};
4848
use crate::persistence;
4949

50-
const PROOF_POLL_LIMIT: usize = 10;
50+
const PROOF_POLL_LIMIT: usize = 50;
5151

5252
pub struct ChainListener {
5353
config: ChainConfig,
@@ -376,6 +376,7 @@ impl ChainListener {
376376
persistence::load_persisted_proof_id(&self.persisted_proof_id_dir).await?;
377377

378378
if let Some(persisted_proof_id) = persisted_proof_id {
379+
self.last_submitted_proof_id = persisted_proof_id.proof_id;
379380
tracing::info!(target: "chain-listener", "Loaded persisted proof id {} saved on epoch {}", persisted_proof_id.proof_id, persisted_proof_id.epoch);
380381
if persisted_proof_id.epoch != self.current_epoch {
381382
tracing::info!(target: "chain-listener","Persisted proof id epoch is different from current epoch {}, resetting proof id", self.current_epoch);

0 commit comments

Comments
 (0)