[fix clearrequests] error iteration dictionary changed size

This commit is contained in:
Antoine Riard 2017-11-09 11:54:25 -05:00
parent ccc9415542
commit 213798cfce

View File

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