tMerge pull request #3634 from achow101/avoid-list-mod - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 1cc7e61433ee5ac579f713066891c6651aeba95d DIR parent 7ae1a4cdebd47848f6b55461adfcbf1428fa24c5 HTML Author: ThomasV <thomasv@electrum.org> Date: Tue, 2 Jan 2018 09:47:05 +0100 Merge pull request #3634 from achow101/avoid-list-mod Avoid modifying self.transactions in prepare_for_verifier Diffstat: M lib/wallet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/lib/wallet.py b/lib/wallet.py t@@ -969,7 +969,7 @@ class Abstract_Wallet(PrintError): # if we are on a pruning server, remove unverified transactions with self.lock: vr = list(self.verified_tx.keys()) + list(self.unverified_tx.keys()) - for tx_hash in self.transactions.keys(): + for tx_hash in list(self.transactions): if tx_hash not in vr: self.print_error("removing transaction", tx_hash) self.transactions.pop(tx_hash)