uncaught error
This commit is contained in:
parent
baf630dfa7
commit
c83c0cd189
1 changed files with 3 additions and 0 deletions
|
@ -155,6 +155,9 @@ class MemPool:
|
||||||
utxos = []
|
utxos = []
|
||||||
for tx_hash in self.touched_hashXs.get(hashX, ()):
|
for tx_hash in self.touched_hashXs.get(hashX, ()):
|
||||||
tx = self.txs.get(tx_hash)
|
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):
|
for pos, (hX, value) in enumerate(tx.out_pairs):
|
||||||
if hX == hashX:
|
if hX == hashX:
|
||||||
utxos.append(UTXO(-1, pos, tx_hash, 0, value))
|
utxos.append(UTXO(-1, pos, tx_hash, 0, value))
|
||||||
|
|
Loading…
Add table
Reference in a new issue