From 1ac3b6c1737da5c898e95d6439000dd581f920b0 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Fri, 20 Sep 2019 16:47:49 -0400 Subject: [PATCH] wallet_list optionally takes wallet_id --- lbry/lbry/extras/daemon/Daemon.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lbry/lbry/extras/daemon/Daemon.py b/lbry/lbry/extras/daemon/Daemon.py index eaf4d0c8a..348900316 100644 --- a/lbry/lbry/extras/daemon/Daemon.py +++ b/lbry/lbry/extras/daemon/Daemon.py @@ -1047,18 +1047,20 @@ class Daemon(metaclass=JSONRPCServerType): """ @requires("wallet") - def jsonrpc_wallet_list(self): + def jsonrpc_wallet_list(self, wallet_id=None): """ List wallets. Usage: - wallet_list + wallet_list [--wallet_id=] Options: - None + --wallet_id= : (str) show specific wallet only Returns: {List[Wallet]} """ + if wallet_id: + return [self.wallet_manager.get_wallet_or_error(wallet_id)] return self.wallet_manager.wallets @requires("wallet")