mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-12 21:34:33 +00:00
fix getTransactionCount bug in db_chain.nim
getTransactionCount will always return 0 because the txCount variable is not returned
This commit is contained in:
parent
1ca4b63c3a
commit
1728dd8d54
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user