From aa0f49633a6d0bff04d8a67f3c36c67b7b1376e2 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Tue, 1 Dec 2020 17:37:59 -0500 Subject: [PATCH] off by one --- lbry/wallet/server/leveldb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbry/wallet/server/leveldb.py b/lbry/wallet/server/leveldb.py index 0e78d6d14..0ee3939b6 100644 --- a/lbry/wallet/server/leveldb.py +++ b/lbry/wallet/server/leveldb.py @@ -285,7 +285,7 @@ def tx_merkle(tx_num, tx_height): prefix=TX_HASH_PREFIX, start=TX_HASH_PREFIX + util.pack_be_uint64(tx_counts[tx_height - 1]), 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: ctx.block_txs_cache[tx_height] = block_txs