git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
6df9eb4
)
add callback to example script
author
ThomasV
<thomasv@gitorious>
Sun, 28 Oct 2012 07:14:00 +0000 (08:14 +0100)
committer
ThomasV
<thomasv@gitorious>
Sun, 28 Oct 2012 07:14:00 +0000 (08:14 +0100)
scripts/blocks
patch
|
blob
|
history
diff --git
a/scripts/blocks
b/scripts/blocks
index
16aa5e7
..
0f21a45
100755
(executable)
--- a/
scripts/blocks
+++ b/
scripts/blocks
@@
-1,8
+1,9
@@
#!/usr/bin/env python
-import electrum
+import sys, electrum
i = electrum.Interface()
+i.register_callback('connected', lambda: sys.stderr.write("Connected to %s\n" % i.connection_msg))
i.start()
i.send([('blockchain.numblocks.subscribe',[])])