find next leader slot before resetting working bank in Poh recorder

This commit is contained in:
Pankaj Garg
2019-03-20 13:49:46 -07:00
committed by Grimes
parent 007e17c290
commit 4db72d85d7
4 changed files with 161 additions and 37 deletions

View File

@@ -113,6 +113,7 @@ impl Fullnode {
bank.slot(),
leader_schedule_utils::next_leader_slot(&id, bank.slot(), &bank),
bank.ticks_per_slot(),
id,
);
let poh_recorder = Arc::new(Mutex::new(poh_recorder));
let poh_service = PohService::new(poh_recorder.clone(), &config.tick_config, &exit);