Browse Source

Merge pull request #3791 from SomberNight/fix_3790

wallet.add_unverified_tx: test if self.verifier exists
3.1
ThomasV 7 years ago
committed by GitHub
parent
commit
603345a172
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      lib/wallet.py

3
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:

Loading…
Cancel
Save