mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-02 18:25:21 +00:00
add wallet_path to kwargs in run_cmdline
This commit is contained in:
parent
46ffab0b55
commit
103a37b0ca
2 changed files with 3 additions and 0 deletions
|
@ -105,6 +105,7 @@ def command(s):
|
|||
kwargs['wallet_path'] = daemon.config.get_wallet_path()
|
||||
if cmd.requires_wallet:
|
||||
wallet_path = kwargs.pop('wallet_path')
|
||||
wallet_path = standardize_path(wallet_path)
|
||||
wallet = daemon.wallets.get(wallet_path)
|
||||
if wallet is None:
|
||||
raise Exception('wallet not loaded')
|
||||
|
|
|
@ -443,6 +443,8 @@ class Daemon(Logger):
|
|||
kwargs = {}
|
||||
for x in cmd.options:
|
||||
kwargs[x] = (config_options.get(x) if x in ['password', 'new_password'] else config.get(x))
|
||||
if cmd.requires_wallet:
|
||||
kwargs['wallet_path'] = config_options.get('wallet_path')
|
||||
func = getattr(self.cmd_runner, cmd.name)
|
||||
# fixme: not sure how to retrieve message in jsonrpcclient
|
||||
try:
|
||||
|
|
Loading…
Add table
Reference in a new issue