electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit ce4be1f8f236cf1ad33ee1aae2c4599bcb8e8e5a
parent ccc94155429241c3d344183a4efdddbbcf6736cf
Author: ThomasV <thomasv@electrum.org>
Date:   Thu,  9 Nov 2017 18:06:50 +0100

Merge pull request #3256 from ariard/fix_clearrequests

[fix clearrequests] dictionary changed size during iteration
Diffstat:
Mlib/commands.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/commands.py b/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')