Browse Source

request fees, peers and banner before address subscriptions

a wallet with many address subscriptions may time out on address
subscriptions before fees are received because fees were requested last
283
shsmith 8 years ago
parent
commit
4109fd9eb2
  1. 4
      lib/network.py

4
lib/network.py

@ -325,14 +325,14 @@ class Network(util.DaemonThread):
for request in requests:
message_id = self.queue_request(request[0], request[1])
self.unanswered_requests[message_id] = request
for addr in self.subscribed_addresses:
self.queue_request('blockchain.address.subscribe', [addr])
self.queue_request('server.banner', [])
self.queue_request('server.donation_address', [])
self.queue_request('server.peers.subscribe', [])
for i in bitcoin.FEE_TARGETS:
self.queue_request('blockchain.estimatefee', [i])
self.queue_request('blockchain.relayfee', [])
for addr in self.subscribed_addresses:
self.queue_request('blockchain.address.subscribe', [addr])
def get_status_value(self, key):
if key == 'status':

Loading…
Cancel
Save