zebra_state::service::finalized_state::zebra_db::metrics

Function block_precommit_metrics

source
pub(crate) fn block_precommit_metrics(block: &Block, hash: Hash, height: Height)
Expand description

Update metrics before committing a block.

The metrics are updated after contextually validating a block, but before writing its batch to the state.