cli: fix load_wallet for storage-encrypted wallets

This commit is contained in:
SomberNight 2019-11-22 15:48:22 +01:00
parent 8e08ca7cb1
commit 3d88d6870c
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

@ -197,9 +197,9 @@ class Commands:
for path, w in self.daemon.get_wallets().items()] for path, w in self.daemon.get_wallets().items()]
@command('n') @command('n')
async def load_wallet(self, wallet_path=None): async def load_wallet(self, wallet_path=None, password=None):
"""Open wallet in daemon""" """Open wallet in daemon"""
wallet = self.daemon.load_wallet(wallet_path, self.config.get('password')) wallet = self.daemon.load_wallet(wallet_path, password)
if wallet is not None: if wallet is not None:
run_hook('load_wallet', wallet, None) run_hook('load_wallet', wallet, None)
response = wallet is not None response = wallet is not None