network - send_subscriptions: copy subscribed_addresses before iterating

see #4146
(this should at least avoid the RuntimeError)
This commit is contained in:
SomberNight 2018-03-24 18:34:51 +01:00
parent 382f69edd9
commit fa91cbf762

View File

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