From f0b0e554315cda5c995202b48113a1b8c8925703 Mon Sep 17 00:00:00 2001 From: Kristaps Kaupe Date: Thu, 4 Jan 2024 13:03:26 +0200 Subject: [PATCH] Cache None in tx_cache for non-wallet transactions --- src/jmclient/wallet_utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/jmclient/wallet_utils.py b/src/jmclient/wallet_utils.py index b78f4d05f..bf541434a 100644 --- a/src/jmclient/wallet_utils.py +++ b/src/jmclient/wallet_utils.py @@ -909,6 +909,8 @@ def print_row(index, time, tx_type, amount, delta, balance, cj_n, ).get_deser_from_gettransaction(wallet_tx) tx_cache[ins.prevout.hash[::-1]] = (wallet_tx, wallet_tx_deser) + else: + tx_cache[ins.prevout.hash[::-1]] = (None, None) if wallet_tx is None: continue inp = wallet_tx_deser.vout[ins.prevout.n]