Wake up replay stage when the poh bank is cleared. (#3211)

* wake up replay stage when the poh bank is cleared

* bump ticks per second

* Increase ticks per slot to match faster tick rate

* Remove check that working bank must be the bank for the greatest slot

* Make start_leader() skip starting TPU for slots we've already been leader for
This commit is contained in:
anatoly yakovenko
2019-03-11 13:58:23 -07:00
committed by GitHub
parent 78bb96ee51
commit 0c592c52f6
6 changed files with 36 additions and 10 deletions

View File

@@ -110,6 +110,13 @@ impl Fullnode {
PohRecorder::new(bank.tick_height(), bank.last_blockhash());
let poh_recorder = Arc::new(Mutex::new(poh_recorder));
let poh_service = PohService::new(poh_recorder.clone(), &config.tick_config, &exit);
poh_recorder.lock().unwrap().clear_bank_signal =
blocktree.new_blobs_signals.first().cloned();
assert_eq!(
blocktree.new_blobs_signals.len(),
1,
"New blob signal for the TVU should be the same as the clear bank signal."
);
info!("node info: {:?}", node.info);
info!("node entrypoint_info: {:?}", entrypoint_info_option);