twallet.py: remove_transaction - make sure we pop from both txi and txo - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 7dcefd999f389d6f1bff2b9cf5d0008a4ed26727 DIR parent 4fed27610a24a6181f2edd62e35a7a806908230f HTML Author: SomberNight <somber.night@protonmail.com> Date: Wed, 11 Apr 2018 19:51:35 +0200 wallet.py: remove_transaction - make sure we pop from both txi and txo Diffstat: M lib/wallet.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) --- DIR diff --git a/lib/wallet.py b/lib/wallet.py t@@ -939,11 +939,9 @@ class Abstract_Wallet(PrintError): dd.pop(addr) else: dd[addr] = l - try: - self.txi.pop(tx_hash) - self.txo.pop(tx_hash) - except KeyError: - self.print_error("tx was not in history", tx_hash) + + self.txi.pop(tx_hash, None) + self.txo.pop(tx_hash, None) def receive_tx_callback(self, tx_hash, tx, tx_height): self.add_unverified_tx(tx_hash, tx_height)