wallet.py: remove_transaction - make sure we pop from both txi and txo
This commit is contained in:
@@ -939,11 +939,9 @@ class Abstract_Wallet(PrintError):
|
|||||||
dd.pop(addr)
|
dd.pop(addr)
|
||||||
else:
|
else:
|
||||||
dd[addr] = l
|
dd[addr] = l
|
||||||
try:
|
|
||||||
self.txi.pop(tx_hash)
|
self.txi.pop(tx_hash, None)
|
||||||
self.txo.pop(tx_hash)
|
self.txo.pop(tx_hash, None)
|
||||||
except KeyError:
|
|
||||||
self.print_error("tx was not in history", tx_hash)
|
|
||||||
|
|
||||||
def receive_tx_callback(self, tx_hash, tx, tx_height):
|
def receive_tx_callback(self, tx_hash, tx, tx_height):
|
||||||
self.add_unverified_tx(tx_hash, tx_height)
|
self.add_unverified_tx(tx_hash, tx_height)
|
||||||
|
|||||||
Reference in New Issue
Block a user