uncaught error

This commit is contained in:
Jack Robison 2022-03-24 21:18:32 -04:00
parent baf630dfa7
commit c83c0cd189
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -155,6 +155,9 @@ class MemPool:
utxos = []
for tx_hash in self.touched_hashXs.get(hashX, ()):
tx = self.txs.get(tx_hash)
if not tx:
self.logger.error("%s isn't in mempool", tx_hash[::-1].hex())
continue
for pos, (hX, value) in enumerate(tx.out_pairs):
if hX == hashX:
utxos.append(UTXO(-1, pos, tx_hash, 0, value))