tpeers - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit e05e0e971179a25881cd1272f63aa26391ea35ad DIR parent c3bbc35fa865fcf4fc18bdd1329b59a1ad4eba7b HTML Author: ThomasV <thomasv@gitorious> Date: Sat, 31 Mar 2012 12:08:11 +0200 peers Diffstat: M client/interface.py | 2 +- A client/peers | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) --- DIR diff --git a/client/interface.py b/client/interface.py t@@ -461,7 +461,7 @@ class WalletSynchronizer(threading.Thread): else: self.wallet.up_to_date = False - response = self.interface.responses.get(True,100000000000) # workaround so that it can be keyboard interrupted + response = self.interface.responses.get()#True,100000000000) # workaround so that it can be keyboard interrupted self.handle_response(response) except socket.error: print "socket error" DIR diff --git a/client/peers b/client/peers t@@ -0,0 +1,11 @@ +#!/usr/bin/env python + +import socket, time, interface + +i = interface.AsynchronousInterface('ecdsa.org', 50001) +i.start() +i.send([('server.peers.subscribe',[])]) + +while True: + r = i.responses.get(True, 100000000000) + print r.get('result')