Log more info at the start of PoH (#5550)

This commit is contained in:
Michael Vines
2019-08-16 16:20:20 -07:00
committed by GitHub
parent 8d105042ea
commit bb0c9d6145

View File

@ -180,21 +180,21 @@ impl Validator {
)) ))
}; };
info!(
"Starting PoH: epoch={} slot={} tick_height={} blockhash={} leader={:?}",
bank.epoch(),
bank.slot(),
bank.tick_height(),
bank.last_blockhash(),
leader_schedule_cache.slot_leader_at(bank.slot(), Some(&bank))
);
if config.dev_halt_at_slot.is_some() { if config.dev_halt_at_slot.is_some() {
// Park with the RPC service running, ready for inspection! // Park with the RPC service running, ready for inspection!
warn!( warn!("Validator halted");
"Validator halted at slot {} (epoch {})",
bank.slot(),
bank.epoch()
);
std::thread::park(); std::thread::park();
} }
info!(
"starting PoH... {} {}",
bank.tick_height(),
bank.last_blockhash(),
);
let blocktree = Arc::new(blocktree); let blocktree = Arc::new(blocktree);
let poh_config = Arc::new(poh_config); let poh_config = Arc::new(poh_config);