commit 4efa6cb24bde25611c0ff581aa89395dc32328db
parent 18ac3b0ec229d5138ca79b63c29c9a23dc4db37e
Author: ThomasV <thomasv@electrum.org>
Date: Wed, 6 Apr 2016 10:41:01 +0200
load default wallet in daemon (fix #1731)
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/lib/daemon.py b/lib/daemon.py
@@ -110,8 +110,10 @@ class Daemon(DaemonThread):
self.network.start()
self.gui = None
self.wallets = {}
- # Setup server
- cmd_runner = Commands(self.config, None, self.network)
+ # Setup JSONRPC server
+ path = config.get_wallet_path()
+ default_wallet = self.load_wallet(path)
+ cmd_runner = Commands(self.config, default_wallet, self.network)
host = config.get('rpchost', 'localhost')
port = config.get('rpcport', 0)
server = SimpleJSONRPCServer((host, port), logRequests=False,