From ae55ed54232d3a7a862a6f2cf124a5176fb64d5f Mon Sep 17 00:00:00 2001 From: Stephen Buttolph Date: Tue, 21 Nov 2023 17:11:07 -0500 Subject: [PATCH] fix metric --- snow/consensus/snowman/metrics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snow/consensus/snowman/metrics.go b/snow/consensus/snowman/metrics.go index 76ecaa5cf427..47328873c532 100644 --- a/snow/consensus/snowman/metrics.go +++ b/snow/consensus/snowman/metrics.go @@ -272,7 +272,7 @@ func (m *metrics) Rejected( m.blockSizeRejectedSum.Add(float64(blockSize)) m.timesVerifiedRejectedSum.Add(float64(timesVerified)) - if timesVerified > 0 { + if timesVerified == 0 { m.unverifiedBlocksRejected.Inc() } }