1
0

cli/rpc: 'restore' and 'create' commands are now available via RPC

This commit is contained in:
SomberNight
2018-10-10 20:29:51 +02:00
parent cd5453e477
commit 1233309ebd
6 changed files with 111 additions and 108 deletions

View File

@@ -170,7 +170,7 @@ class Daemon(DaemonThread):
return True
def run_daemon(self, config_options):
asyncio.set_event_loop(self.network.asyncio_loop)
asyncio.set_event_loop(self.network.asyncio_loop) # FIXME what if self.network is None?
config = SimpleConfig(config_options)
sub = config.get('subcommand')
assert sub in [None, 'start', 'stop', 'status', 'load_wallet', 'close_wallet']
@@ -264,6 +264,7 @@ class Daemon(DaemonThread):
wallet.stop_threads()
def run_cmdline(self, config_options):
asyncio.set_event_loop(self.network.asyncio_loop) # FIXME what if self.network is None?
password = config_options.get('password')
new_password = config_options.get('new_password')
config = SimpleConfig(config_options)