|
@ -461,8 +461,6 @@ class Network(util.DaemonThread): |
|
|
self.response_queue.put(out) |
|
|
self.response_queue.put(out) |
|
|
return |
|
|
return |
|
|
|
|
|
|
|
|
# store request |
|
|
|
|
|
self.unanswered_requests[_id] = request |
|
|
|
|
|
if method == 'blockchain.address.subscribe': |
|
|
if method == 'blockchain.address.subscribe': |
|
|
addr = params[0] |
|
|
addr = params[0] |
|
|
self.subscribed_addresses.add(addr) |
|
|
self.subscribed_addresses.add(addr) |
|
@ -470,6 +468,9 @@ class Network(util.DaemonThread): |
|
|
self.response_queue.put({'id':_id, 'result':self.addr_responses[addr]}) |
|
|
self.response_queue.put({'id':_id, 'result':self.addr_responses[addr]}) |
|
|
return |
|
|
return |
|
|
|
|
|
|
|
|
|
|
|
# store unanswered request |
|
|
|
|
|
self.unanswered_requests[_id] = request |
|
|
|
|
|
|
|
|
try: |
|
|
try: |
|
|
self.interface.send_request(request) |
|
|
self.interface.send_request(request) |
|
|
except: |
|
|
except: |
|
|