From 56098e0c52d35ddd2118d8e608312ab4c1f07657 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Thu, 10 Nov 2016 23:50:55 +0900 Subject: [PATCH] Show up to 3 missing UTXOs Fixes #15 --- server/block_processor.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/server/block_processor.py b/server/block_processor.py index aac800e..288f558 100644 --- a/server/block_processor.py +++ b/server/block_processor.py @@ -181,7 +181,7 @@ class MemPool(LoggedClass): ''' hex_hashes = set(hex_hashes) touched = set() - missing_utxos = 0 + missing_utxos = [] initial = self.count < 0 if initial: @@ -235,6 +235,7 @@ class MemPool(LoggedClass): if entry == NO_CACHE_ENTRY: # This happens when the daemon is a block ahead of us # and has mempool txs spending new txs in that block + missing_utxos.append(txin) raise MissingUTXOError value, = struct.unpack('