LBRY-Vault/client/blocks
2012-03-24 15:23:33 +01:00

10 lines
266 B
Python
Executable file

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