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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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') |
|
|
|