Skip to content

Commit

Permalink
feat(advance): check rollup claim before producing
Browse files Browse the repository at this point in the history
  • Loading branch information
GMKrieger committed Aug 8, 2024
1 parent 584edb0 commit cb25982
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions offchain/advance-runner/src/broker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ impl BrokerFacade {
Some(event) => {
tracing::trace!(?event, "got last claim produced");
rollups_claim.epoch_index <= event.payload.epoch_index
|| rollups_claim.first_index != event.payload.last_index + 1
|| rollups_claim.last_index < event.payload.last_index
}
None => {
tracing::trace!("no claims in the stream");
Expand Down

0 comments on commit cb25982

Please sign in to comment.