electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 0c5bfb8c2660f3eb6fe282379e5e971bb95c67fa
parent e6924d991254d0a7e6c5fb84e14241081123507a
Author: ThomasV <thomasv1@gmx.de>
Date:   Fri, 24 Jul 2015 14:23:03 +0200

print -> util.print_error

Diffstat:
Mlib/websockets.py | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/websockets.py b/lib/websockets.py @@ -37,10 +37,10 @@ class ElectrumWebSocket(WebSocket): request_queue.put((self, request_id)) def handleConnected(self): - print "connected", self.address + util.print_error("connected", self.address) def handleClose(self): - print "closed", self.address + util.print_error("closed", self.address) @@ -104,7 +104,7 @@ class WsClientThread(daemon.ClientThread): result = r.get('result') if method == 'blockchain.address.subscribe': - print 'response', r + util.print_error('response', r) if result is not None: request = {'method':'blockchain.address.get_balance', 'params':params, 'id':self.counter} self.server.send_request(self, request) @@ -112,7 +112,7 @@ class WsClientThread(daemon.ClientThread): self.counter += 1 if r.get('method') == 'blockchain.address.get_balance': - print 'response', r + util.print_error('response', r) if not ws.closed: if sum(result.values()) >=amount: ws.sendMessage(unicode('paid'))