Merge pull request #3256 from ariard/fix_clearrequests

[fix clearrequests] dictionary changed size during iteration
This commit is contained in:
ThomasV 2017-11-09 18:06:50 +01:00 committed by GitHub
commit ce4be1f8f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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