electrum

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

commit 5ed0f2224d5670d0afde68a4d961b6de37b7f85b
parent 4ec31b9fe97f1d057a24a0b639baf4fc02a49000
Author: ThomasV <thomasv@gitorious>
Date:   Tue, 10 Jun 2014 20:44:52 +0200

Fix daemon port

Diffstat:
Mlib/daemon.py | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/daemon.py b/lib/daemon.py @@ -28,6 +28,7 @@ from network import Network from util import print_msg, print_stderr from simple_config import SimpleConfig +DAEMON_PORT=8001 class NetworkProxy(threading.Thread): # connects to daemon @@ -39,7 +40,7 @@ class NetworkProxy(threading.Thread): self.config = SimpleConfig(config) if type(config) == type({}) else config self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) - self.daemon_port = config.get('daemon_port', 8000) + self.daemon_port = config.get('daemon_port', DAEMON_PORT) self.message_id = 0 self.unanswered_requests = {} self.subscriptions = {} @@ -307,7 +308,7 @@ class NetworkServer: self.network = network self.server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.server.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) - self.daemon_port = config.get('daemon_port', 8001) + self.daemon_port = config.get('daemon_port', DAEMON_PORT) self.server.bind(('', self.daemon_port)) self.server.listen(5) self.server.settimeout(1)