git://git.novaco.in
/
electrum-nvc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add callback to example script
[electrum-nvc.git]
/
scripts
/
peers
1
#!/usr/bin/env python
2
3
from electrum import Interface
4
5
i = Interface({'server':'ecdsa.org:50001:t'})
6
i.start()
7
i.send([('server.peers.subscribe',[])])
8
9
while True:
10
r = i.get_response()
11
print r.get('result')