Browse Source

Cache None in tx_cache for non-wallet transactions

master
Kristaps Kaupe 2 years ago
parent
commit
f0b0e55431
No known key found for this signature in database
GPG Key ID: 33E472FE870C7E5D
  1. 2
      src/jmclient/wallet_utils.py

2
src/jmclient/wallet_utils.py

@ -909,6 +909,8 @@ def wallet_fetch_history(wallet, options):
).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]

Loading…
Cancel
Save