core: fix pending counter metric

This commit is contained in:
Felix Lange 2019-06-17 11:38:55 +02:00 committed by Péter Szilágyi
parent 73e39ba0c0
commit 049300a805
No known key found for this signature in database
GPG key ID: E9AE538CEDF8293D

View file

@ -1339,7 +1339,7 @@ func (pool *TxPool) demoteUnexecutables() {
log.Error("Demoting invalidated transaction", "hash", hash) log.Error("Demoting invalidated transaction", "hash", hash)
pool.enqueueTx(hash, tx) pool.enqueueTx(hash, tx)
} }
pendingCounter.Inc(int64(len(gapped))) pendingCounter.Dec(int64(len(gapped)))
} }
// Delete the entire queue entry if it became empty. // Delete the entire queue entry if it became empty.
if list.Empty() { if list.Empty() {