mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 07:51:27 +00:00
12 lines
241 B
Python
Executable file
12 lines
241 B
Python
Executable file
#!/usr/bin/env python
|
|
|
|
import socket, time, interface
|
|
|
|
def cb(block_number):
|
|
print block_number
|
|
|
|
i = interface.AsynchronousInterface('ecdsa.org', 50001, newblock_callback=cb)
|
|
i.start_session([],"blocks")
|
|
|
|
while True:
|
|
time.sleep(1)
|