git://git.novaco.in
/
electrum-nvc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
big refactoring: command line options and electrum.conf options override settings...
[electrum-nvc.git]
/
scripts
/
peers
1
#!/usr/bin/env python
2
3
from electrum import Interface
4
5
i = Interface({'server':'electrum.novit.ro:50001:t'})
6
i.init_socket()
7
i.start()
8
i.send([('server.peers.subscribe',[])])
9
10
while True:
11
r = i.responses.get(True, 100000000000)
12
print r.get('result')