mirror of
https://github.com/romanz/electrs.git
synced 2024-11-19 01:43:29 +01:00
Fix contrib/get_tip.py
This commit is contained in:
parent
d4559a31e6
commit
8a39d47092
@ -10,7 +10,7 @@ def main():
|
||||
args = parser.parse_args()
|
||||
|
||||
conn = client.Client((args.host, args.port))
|
||||
print(json.dumps(conn.call("blockchain.headers.subscribe")["result"]))
|
||||
print(conn.call(conn.request("blockchain.headers.subscribe"))[0]["result"])
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
Loading…
Reference in New Issue
Block a user