Add more metrics, tidy existing metrics

This commit is contained in:
Paul Hauner
2019-08-13 12:11:18 +10:00
parent e369e293a5
commit b076b07022
8 changed files with 120 additions and 11 deletions

View File

@@ -827,8 +827,12 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
return Ok(BlockProcessingOutcome::GenesisBlock);
}
let block_root_timer = metrics::start_timer(&metrics::BLOCK_PROCESSING_BLOCK_ROOT);
let block_root = block.canonical_root();
metrics::stop_timer(block_root_timer);
if block_root == self.genesis_block_root {
return Ok(BlockProcessingOutcome::GenesisBlock);
}