Merge pull request #3256 from ariard/fix_clearrequests
[fix clearrequests] dictionary changed size during iteration
This commit is contained in:
@@ -651,7 +651,7 @@ class Commands:
|
|||||||
@command('w')
|
@command('w')
|
||||||
def clearrequests(self):
|
def clearrequests(self):
|
||||||
"""Remove all payment requests"""
|
"""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)
|
self.wallet.remove_payment_request(k, self.config)
|
||||||
|
|
||||||
@command('n')
|
@command('n')
|
||||||
|
|||||||
Reference in New Issue
Block a user