Skip to content

Commit

Permalink
Fix one more possible crash in execution_driver
Browse files Browse the repository at this point in the history
  • Loading branch information
bingyanglin committed Jan 19, 2025
1 parent 46ed3db commit 906636b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions crates/iota-core/src/execution_driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,16 @@ pub async fn execution_process(
let digest = *certificate.digest();
trace!(?digest, "Pending certificate execution activated.");

if epoch_store.epoch() != certificate.epoch() {
info!(
?digest,
cur_epoch = epoch_store.epoch(),
cert_epoch = certificate.epoch(),
"Ignoring certificate from previous epoch."
);
continue;
}

let limit = limit.clone();
// hold semaphore permit until task completes. unwrap ok because we never close
// the semaphore in this context.
Expand Down

0 comments on commit 906636b

Please sign in to comment.