From c83c0cd189cae795a8d3b8c12dc5518b244b82ee Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Thu, 24 Mar 2022 21:18:32 -0400 Subject: [PATCH] uncaught error --- scribe/hub/mempool.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scribe/hub/mempool.py b/scribe/hub/mempool.py index 1403310..fa64ed7 100644 --- a/scribe/hub/mempool.py +++ b/scribe/hub/mempool.py @@ -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))