From e3a496478759a6ebe233773d29285cfe1f4d8693 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Wed, 16 Dec 2020 01:28:30 -0500 Subject: [PATCH] catch any remaining index errors in fs_tx_hash --- lbry/wallet/server/block_processor.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lbry/wallet/server/block_processor.py b/lbry/wallet/server/block_processor.py index aab99452f..df40d7ea6 100644 --- a/lbry/wallet/server/block_processor.py +++ b/lbry/wallet/server/block_processor.py @@ -601,13 +601,17 @@ class BlockProcessor: prefix = b'h' + tx_hash[:4] + idx_packed candidates = {db_key: hashX for db_key, hashX in self.db.utxo_db.iterator(prefix=prefix)} - for hdb_key, hashX in candidates.items(): tx_num_packed = hdb_key[-4:] - if len(candidates) > 1: + tx_num, = unpack('