1
0
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:
Roman Zeyde 2021-05-24 17:32:10 +03:00
parent d4559a31e6
commit 8a39d47092

View File

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