commit fa91cbf762587880fa32f51742be746cfadd3815
parent 382f69edd9a27dd37744d4eac3d3c8164afc0ae4
Author: SomberNight <somber.night@protonmail.com>
Date: Sat, 24 Mar 2018 18:34:51 +0100
network - send_subscriptions: copy subscribed_addresses before iterating
see #4146
(this should at least avoid the RuntimeError)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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):