tundo verified tx when swapping chains - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 9576f8510d77222c1431e0e699487c5bfa6915aa DIR parent 0b6d7dbbc91acbd300411c8b1a9837dbadb5be92 HTML Author: ThomasV <thomasv@electrum.org> Date: Wed, 19 Jul 2017 06:50:48 +0200 undo verified tx when swapping chains Diffstat: M lib/wallet.py | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) --- DIR diff --git a/lib/wallet.py b/lib/wallet.py t@@ -294,6 +294,10 @@ class Abstract_Wallet(PrintError): return self.get_pubkeys(*sequence) 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) + # tx will be verified only if height > 0 if tx_hash not in self.verified_tx: self.unverified_tx[tx_hash] = tx_height