Browse Source

Merge pull request #3256 from ariard/fix_clearrequests

[fix clearrequests] dictionary changed size during iteration
3.0.x
ThomasV 7 years ago
committed by GitHub
parent
commit
ce4be1f8f2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      lib/commands.py

2
lib/commands.py

@ -651,7 +651,7 @@ class Commands:
@command('w')
def clearrequests(self):
"""Remove all payment requests"""
for k in self.wallet.receive_requests.keys():
for k in list(self.wallet.receive_requests.keys()):
self.wallet.remove_payment_request(k, self.config)
@command('n')

Loading…
Cancel
Save