diff --git a/lbry/extras/daemon/components.py b/lbry/extras/daemon/components.py index 617504b7d..f6f0a7607 100644 --- a/lbry/extras/daemon/components.py +++ b/lbry/extras/daemon/components.py @@ -112,7 +112,13 @@ class WalletComponent(Component): return session_pool = self.wallet_manager.ledger.network.session_pool sessions = session_pool.sessions + connected = None + if self.wallet_manager.ledger.network.client: + addr_and_port = self.wallet_manager.ledger.network.client.server_address_and_port + if addr_and_port: + connected = f"{addr_and_port[0]}:{addr_and_port[1]}" result = { + 'connected': connected, 'servers': [ { 'host': session.server[0], diff --git a/lbry/extras/daemon/daemon.py b/lbry/extras/daemon/daemon.py index 395dab156..f1bc44aed 100644 --- a/lbry/extras/daemon/daemon.py +++ b/lbry/extras/daemon/daemon.py @@ -772,6 +772,7 @@ class Daemon(metaclass=JSONRPCServerType): 'download_progress': (float) 0-100.0 }, 'wallet': { + 'connected': (str) host and port of the connected spv server, 'blocks': (int) local blockchain height, 'blocks_behind': (int) remote_height - local_height, 'best_blockhash': (str) block hash of most recent block,