git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
1d26676
)
update peers script
author
thomasv
<thomasv@gitorious>
Wed, 14 Aug 2013 14:22:13 +0000 (16:22 +0200)
committer
thomasv
<thomasv@gitorious>
Wed, 14 Aug 2013 14:22:13 +0000 (16:22 +0200)
scripts/peers
patch
|
blob
|
history
diff --git
a/scripts/peers
b/scripts/peers
index
38ef632
..
2371f30
100755
(executable)
--- a/
scripts/peers
+++ b/
scripts/peers
@@
-1,11
+1,9
@@
#!/usr/bin/env python
-from electrum import Interface
+from electrum import interface, Interface
-i = Interface({'server':'ecdsa.org:50001:t'})
+i = Interface()
i.start()
-i.send([('server.peers.subscribe',[])])
-
-while True:
- r = i.get_response()
- print r.get('result')
+servers = i.synchronous_get([('server.peers.subscribe',[])])[0]
+servers = i.parse_servers( servers )
+print servers