Add extra logging when new head found

This commit is contained in:
Paul Hauner 2019-09-09 17:12:47 -04:00
parent d466f90843
commit 5de80f2799
No known key found for this signature in database
GPG Key ID: 303E4494BB28068C

View File

@ -1332,9 +1332,11 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
} else {
info!(
self.log,
"new head block";
"New head beacon block";
"justified_root" => format!("{}", beacon_state.current_justified_checkpoint.root),
"justified_epoch" => beacon_state.current_justified_checkpoint.epoch,
"finalized_root" => format!("{}", beacon_state.finalized_checkpoint.root),
"finalized_epoch" => beacon_state.finalized_checkpoint.epoch,
"root" => format!("{}", beacon_block_root),
"slot" => new_slot,
);