Browse Source

wallet.py: remove_transaction - make sure we pop from both txi and txo

3.2.x
SomberNight 7 years ago
parent
commit
7dcefd999f
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 8
      lib/wallet.py

8
lib/wallet.py

@ -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)

Loading…
Cancel
Save