From b0966671d786c628d1a75354c15ac16861e8829b Mon Sep 17 00:00:00 2001 From: SomberNight Date: Sun, 28 Jan 2018 22:20:27 +0100 Subject: [PATCH] fix #3790 --- lib/wallet.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/wallet.py b/lib/wallet.py index 65cdd3da6..26a114ad7 100644 --- a/lib/wallet.py +++ b/lib/wallet.py @@ -361,7 +361,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: