Add bank drop service (#21322)

This commit is contained in:
sakridge
2021-11-19 16:20:18 +00:00
committed by GitHub
parent b1b334a17f
commit 0bda0c3e0c
5 changed files with 62 additions and 9 deletions

View File

@ -202,6 +202,7 @@ impl VoteSimulator {
}
pub fn set_root(&mut self, new_root: Slot) {
let (drop_bank_sender, _drop_bank_receiver) = std::sync::mpsc::channel();
ReplayStage::handle_new_root(
new_root,
&self.bank_forks,
@ -215,6 +216,7 @@ impl VoteSimulator {
&mut true,
&mut Vec::new(),
&mut EpochSlotsFrozenSlots::default(),
&drop_bank_sender,
)
}