LBRY-Vault/client/blocks
2012-03-28 23:02:33 +02:00

11 lines
252 B
Python
Executable file

#!/usr/bin/env python
import socket, time, interface
i = interface.AsynchronousInterface('ecdsa.org', 50001)
i.start()
i.send([('blockchain.numblocks.subscribe',[])])
while True:
r = i.responses.get(True, 100000000000)
print r.get('result')