diff --git a/lib/wallet.py b/lib/wallet.py index 45b171d4b..04f95cc80 100644 --- a/lib/wallet.py +++ b/lib/wallet.py @@ -643,7 +643,7 @@ class Abstract_Wallet(PrintError): with self.transaction_lock: self.print_error("removing tx from history", tx_hash) #tx = self.transactions.pop(tx_hash) - for ser, hh in self.pruned_txo.items(): + for ser, hh in list(self.pruned_txo.items()): if hh == tx_hash: self.pruned_txo.pop(ser) # add tx to pruned_txo, and undo the txi addition