There was an error while loading. Please reload this page.
1 parent 3ba582b commit 9769288Copy full SHA for 9769288
1 file changed
runtime/src/bank.rs
@@ -1475,6 +1475,10 @@ impl Bank {
1475
let mut time = Measure::start("bank::new_from_parent");
1476
let NewBankOptions { vote_only_bank } = new_bank_options;
1477
1478
+ // there should be no active scheduler at this point, which
1479
+ // might be actively mutating bank state...
1480
+ assert!(!parent.with_scheduler());
1481
+
1482
parent.freeze();
1483
assert_ne!(slot, parent.slot());
1484
0 commit comments