From 049300a805c09aeb0e63ef375b13e7b126aa11c4 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Mon, 17 Jun 2019 11:38:55 +0200 Subject: [PATCH] core: fix pending counter metric --- core/tx_pool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/tx_pool.go b/core/tx_pool.go index 7b32b844c2..cb77395a59 100644 --- a/core/tx_pool.go +++ b/core/tx_pool.go @@ -1339,7 +1339,7 @@ func (pool *TxPool) demoteUnexecutables() { log.Error("Demoting invalidated transaction", "hash", hash) pool.enqueueTx(hash, tx) } - pendingCounter.Inc(int64(len(gapped))) + pendingCounter.Dec(int64(len(gapped))) } // Delete the entire queue entry if it became empty. if list.Empty() {