Fix uninitialized var from select merge

This commit is contained in:
Neil Booth 2015-09-02 13:50:25 +09:00
parent 90316d0459
commit 6c69849be9
1 changed files with 2 additions and 1 deletions

View File

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