ThomasV 13 years ago
parent
commit
e05e0e9711
  1. 2
      client/interface.py
  2. 11
      client/peers

2
client/interface.py

@ -461,7 +461,7 @@ class WalletSynchronizer(threading.Thread):
else: else:
self.wallet.up_to_date = False 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) self.handle_response(response)
except socket.error: except socket.error:
print "socket error" print "socket error"

11
client/peers

@ -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')
Loading…
Cancel
Save