From fa91cbf762587880fa32f51742be746cfadd3815 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Sat, 24 Mar 2018 18:34:51 +0100 Subject: [PATCH] network - send_subscriptions: copy subscribed_addresses before iterating see #4146 (this should at least avoid the RuntimeError) --- lib/network.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/network.py b/lib/network.py index d40951fde..b9f3c6894 100644 --- a/lib/network.py +++ b/lib/network.py @@ -319,7 +319,7 @@ class Network(util.DaemonThread): self.queue_request('server.peers.subscribe', []) self.request_fee_estimates() self.queue_request('blockchain.relayfee', []) - for h in self.subscribed_addresses: + for h in list(self.subscribed_addresses): self.queue_request('blockchain.scripthash.subscribe', [h]) def request_fee_estimates(self):