tattempt at fixing wallet syncing crash - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 1e3c3a528c8d3fe8008bc0c0e2845f1ce059119a
DIR parent 73e367dc3bbef3e9dcc6d1f524e109c0a30f6a1d
HTML Author: SomberNight <somber.night@protonmail.com>
Date: Wed, 5 Sep 2018 15:22:57 +0200
attempt at fixing wallet syncing crash
fix #3998
fix #4689
Diffstat:
M electrum/address_synchronizer.py | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
DIR diff --git a/electrum/address_synchronizer.py b/electrum/address_synchronizer.py
t@@ -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