Merge pull request #3634 from achow101/avoid-list-mod

Avoid modifying self.transactions in prepare_for_verifier
This commit is contained in:
ThomasV 2018-01-02 09:47:05 +01:00 committed by GitHub
commit 1cc7e61433
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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