From 3a0affe8ba49e0957ed9847de47d94e493a6cacd Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Tue, 11 Jun 2019 02:25:49 -0300 Subject: [PATCH] show status while downloading headers --- lbrynet/extras/daemon/Components.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lbrynet/extras/daemon/Components.py b/lbrynet/extras/daemon/Components.py index 6a08fdd1a..88246b244 100644 --- a/lbrynet/extras/daemon/Components.py +++ b/lbrynet/extras/daemon/Components.py @@ -244,13 +244,14 @@ class WalletComponent(Component): def __init__(self, component_manager): super().__init__(component_manager) self.wallet_manager = None + self._started = False @property def component(self): return self.wallet_manager async def get_status(self): - if self.wallet_manager and self.running: + if self.wallet_manager and self._started: local_height = self.wallet_manager.ledger.headers.height remote_height = await self.wallet_manager.ledger.network.get_server_height() best_hash = self.wallet_manager.get_best_blockhash() @@ -265,6 +266,7 @@ class WalletComponent(Component): async def start(self): log.info("Starting torba wallet") self.wallet_manager = await LbryWalletManager.from_lbrynet_config(self.conf) + self._started = True await self.wallet_manager.start() async def stop(self):