1
0

Pass raw=True when subscribing to headers

Remove use of deprecated bitcoin address
This commit is contained in:
Neil Booth
2018-05-30 13:53:19 +08:00
parent 1900e58e88
commit b164cc4bba
2 changed files with 6 additions and 2 deletions

View File

@@ -21,7 +21,8 @@ if not network.is_connected():
# 2. send the subscription
callback = lambda response: print_msg(json_encode(response.get('result')))
network.send([('blockchain.headers.subscribe',[])], callback)
network.send([('server.version',["block_headers script", "1.2"])], callback)
network.send([('blockchain.headers.subscribe',[True])], callback)
# 3. wait for results
while network.is_connected():