commit 348ef7d72c85cec3897b2b306f6a2264cc089f9f
parent c186dc18d468ebb9750bae1dd9134587a8701e17
Author: ThomasV <thomasv@electrum.org>
Date: Fri, 22 Sep 2017 10:19:40 +0200
Merge pull request #2902 from SomberNight/network_timeout
send server.version before subscriptions
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/lib/network.py b/lib/network.py
@@ -317,6 +317,9 @@ class Network(util.DaemonThread):
for i in bitcoin.FEE_TARGETS:
self.queue_request('blockchain.estimatefee', [i])
self.queue_request('blockchain.relayfee', [])
+ if self.interface.ping_required():
+ params = [ELECTRUM_VERSION, PROTOCOL_VERSION]
+ self.queue_request('server.version', params, self.interface)
for h in self.subscribed_addresses:
self.queue_request('blockchain.scripthash.subscribe', [h])