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…
Reference in New Issue