From 2fa3d8a8f495e63ceb83736bd8dad3c9f4ce4836 Mon Sep 17 00:00:00 2001 From: teor Date: Mon, 26 Oct 2020 22:38:35 +1000 Subject: [PATCH] Add a comment explaining why block metrics follow validation --- zebra-consensus/src/block.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/zebra-consensus/src/block.rs b/zebra-consensus/src/block.rs index c64be679..e08e0023 100644 --- a/zebra-consensus/src/block.rs +++ b/zebra-consensus/src/block.rs @@ -179,6 +179,7 @@ where result.map_err(VerifyBlockError::Transaction)?; } + // Update the metrics after all the validation is finished tracing::trace!("verified block"); metrics::gauge!("block.verified.block.height", height.0 as _); metrics::counter!("block.verified.block.count", 1);