You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
241 B
12 lines
241 B
#!/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)
|
|
|