cli: fix load_wallet for storage-encrypted wallets
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user