From 1728dd8d54c6ca9efbd8adc1e43689e464f16974 Mon Sep 17 00:00:00 2001 From: jangko Date: Sat, 24 Apr 2021 10:47:37 +0700 Subject: [PATCH] fix getTransactionCount bug in db_chain.nim getTransactionCount will always return 0 because the txCount variable is not returned --- nimbus/db/db_chain.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/nimbus/db/db_chain.nim b/nimbus/db/db_chain.nim index c640b2588..3f123915f 100644 --- a/nimbus/db/db_chain.nim +++ b/nimbus/db/db_chain.nim @@ -176,6 +176,7 @@ proc getTransactionCount*(chain: BaseChainDB, txRoot: Hash256): int = if txKey notin trie: break inc txCount + txCount proc getUnclesCount*(self: BaseChainDB, ommersHash: Hash256): int = if ommersHash != EMPTY_UNCLE_HASH: