Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(node): Fix one more possible crash in execution_driver #4900

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading