Skip to content

Commit

Permalink
chore(dispatcher): improve epoch-related logs
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelstanley committed Aug 14, 2024
1 parent 6399696 commit d3f25a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion offchain/dispatcher/src/drivers/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ impl Context {
(Some(_), None) => true, // Consider input_epoch greater than None
(None, _) => false, // None is never greater than any value
},
"Assertion failed: last_input_epoch should be greater than last_finished_epoch"
"cannot finish epoch: last_input_epoch ({:?}) is not greater than last_finished_epoch ({:?})",
self.last_input_epoch,
self.last_finished_epoch
);

broker.finish_epoch(self.inputs_sent).await?;
Expand Down

0 comments on commit d3f25a8

Please sign in to comment.