callback for blocks
This commit is contained in:
12
client/blocks
Executable file
12
client/blocks
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import socket, time, interface
|
||||
|
||||
def cb(block_number):
|
||||
print block_number
|
||||
|
||||
i = interface.TCPInterface('ecdsa.org', 50001, newblock_callback=cb)
|
||||
i.start_session([],"zob")
|
||||
|
||||
while True:
|
||||
time.sleep(1)
|
||||
Reference in New Issue
Block a user