Skip to content

Commit

Permalink
Cache None in tx_cache for non-wallet transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
kristapsk committed Jan 4, 2024
1 parent 7d49d54 commit f0b0e55
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/jmclient/wallet_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit f0b0e55

Please sign in to comment.