Skip to content

Commit

Permalink
Call wait_for_completed_scheduler in banking simulator
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed Dec 16, 2024
1 parent 3280b8b commit aabd2ac
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ codecov = { repository = "solana-labs/solana", branch = "master", service = "git
ahash = { workspace = true }
anyhow = { workspace = true }
arrayvec = { workspace = true }
assert_matches = { workspace = true }
base64 = { workspace = true }
bincode = { workspace = true }
bs58 = { workspace = true }
Expand Down
4 changes: 4 additions & 0 deletions core/src/banking_simulation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use {
},
validator::BlockProductionMethod,
},
assert_matches::assert_matches,
bincode::deserialize_from,
crossbeam_channel::{unbounded, Sender},
itertools::Itertools,
Expand Down Expand Up @@ -452,6 +453,9 @@ impl SimulatorLoop {
info!("Bank::new_from_parent()!");

logger.log_jitter(&bank);
if let Some((result, _execute_timings)) = bank.wait_for_completed_scheduler() {
assert_matches!(result, Ok(()));
}
bank.freeze();
let new_slot = if bank.slot() == self.parent_slot {
info!("initial leader block!");
Expand Down
2 changes: 2 additions & 0 deletions programs/sbf/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions svm/examples/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit aabd2ac

Please sign in to comment.