From 1e3c3a528c8d3fe8008bc0c0e2845f1ce059119a Mon Sep 17 00:00:00 2001 From: SomberNight Date: Wed, 5 Sep 2018 15:22:57 +0200 Subject: [PATCH] attempt at fixing wallet syncing crash fix #3998 fix #4689 --- electrum/address_synchronizer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/electrum/address_synchronizer.py b/electrum/address_synchronizer.py index 88ef82f2a..56203d671 100644 --- a/electrum/address_synchronizer.py +++ b/electrum/address_synchronizer.py @@ -380,6 +380,8 @@ class AddressSynchronizer(PrintError): for prevout_hash, d in _spent_outpoints.items(): for prevout_n_str, spending_txid in d.items(): prevout_n = int(prevout_n_str) + if spending_txid not in self.transactions: + continue # only care about txns we have self.spent_outpoints[prevout_hash][prevout_n] = spending_txid @profiler