off by one
This commit is contained in:
parent
ede167bb56
commit
aa0f49633a
1 changed files with 1 additions and 1 deletions
|
@ -285,7 +285,7 @@ def tx_merkle(tx_num, tx_height):
|
||||||
prefix=TX_HASH_PREFIX,
|
prefix=TX_HASH_PREFIX,
|
||||||
start=TX_HASH_PREFIX + util.pack_be_uint64(tx_counts[tx_height - 1]),
|
start=TX_HASH_PREFIX + util.pack_be_uint64(tx_counts[tx_height - 1]),
|
||||||
stop=None if tx_height + 1 == len(tx_counts) else
|
stop=None if tx_height + 1 == len(tx_counts) else
|
||||||
TX_HASH_PREFIX + util.pack_be_uint64(tx_counts[tx_height]), include_key=False
|
TX_HASH_PREFIX + util.pack_be_uint64(tx_counts[tx_height] - 1), include_key=False
|
||||||
))
|
))
|
||||||
if tx_height + 100 <= db_height:
|
if tx_height + 100 <= db_height:
|
||||||
ctx.block_txs_cache[tx_height] = block_txs
|
ctx.block_txs_cache[tx_height] = block_txs
|
||||||
|
|
Loading…
Add table
Reference in a new issue