commit 6c69849be9383a3d7670fa18e8644953d60ba6f4
parent 90316d0459257116935d7245d29b2b2d6a1166e3
Author: Neil Booth <kyuupichan@gmail.com>
Date: Wed, 2 Sep 2015 13:50:25 +0900
Fix uninitialized var from select merge
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/network.py b/lib/network.py
@@ -510,8 +510,9 @@ class Network(util.DaemonThread):
break
# Rewrite response shape to match subscription request response
method = response.get('method')
+ params = response.get('params')
if method == 'blockchain.headers.subscribe':
- response['result'] = response['params'][0]
+ response['result'] = params[0]
response['params'] = []
elif method == 'blockchain.address.subscribe':
response['params'] = [params[0]] # addr