1
0

callback for blocks

This commit is contained in:
ThomasV
2012-03-17 12:51:16 +01:00
parent 4b6e163a39
commit 9039cf959a
2 changed files with 19 additions and 6 deletions

12
client/blocks Executable file
View 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)