commit 603345a17223814d4e8ad719b36e49e413abed0e
parent 517d2c25b6368c878f5a52e9932d9a665d75bc1a
Author: ThomasV <thomasv@electrum.org>
Date: Tue, 30 Jan 2018 00:06:53 +0100
Merge pull request #3791 from SomberNight/fix_3790
wallet.add_unverified_tx: test if self.verifier exists
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/wallet.py b/lib/wallet.py
@@ -367,7 +367,8 @@ class Abstract_Wallet(PrintError):
def add_unverified_tx(self, tx_hash, tx_height):
if tx_height == 0 and tx_hash in self.verified_tx:
self.verified_tx.pop(tx_hash)
- self.verifier.merkle_roots.pop(tx_hash, None)
+ if self.verifier:
+ self.verifier.merkle_roots.pop(tx_hash, None)
# tx will be verified only if height > 0
if tx_hash not in self.verified_tx: