tfix: websocket uses network object - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 1207ad3ba41ed25cbc2d91b12fb2b45a431357f0 DIR parent 2a29d1e5e70fecbeb59e75a943b06d3303c64ad4 HTML Author: ThomasV <thomasv@electrum.org> Date: Wed, 25 Nov 2015 10:48:34 +0100 fix: websocket uses network object Diffstat: M electrum | 2 +- M lib/websockets.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/electrum b/electrum t@@ -476,7 +476,7 @@ if __name__ == '__main__': server = NetworkServer(config, network) if config.get('websocket_server'): from electrum import websockets - websockets.WebSocketServer(config, server).start() + websockets.WebSocketServer(config, network).start() if config.get('requests_dir'): util.check_www_dir(config.get('requests_dir')) server.start() DIR diff --git a/lib/websockets.py b/lib/websockets.py t@@ -32,7 +32,7 @@ class ElectrumWebSocket(WebSocket): def handleMessage(self): assert self.data[0:3] == 'id:' - print "message received", self.data + util.print_error("message received", self.data) request_id = self.data[3:] request_queue.put((self, request_id))