forked from LBRYCommunity/lbry-sdk
Merge pull request #2699 from lbryio/faster-account-startup
don't log account details on startup if there are more than 10
This commit is contained in:
commit
d9b482d90a
1 changed files with 4 additions and 1 deletions
|
@ -107,7 +107,10 @@ class MainNetLedger(BaseLedger):
|
|||
await super().start()
|
||||
await asyncio.gather(*(a.maybe_migrate_certificates() for a in self.accounts))
|
||||
await asyncio.gather(*(a.save_max_gap() for a in self.accounts))
|
||||
await self._report_state()
|
||||
if len(self.accounts) > 10:
|
||||
log.info("Loaded %i accounts", len(self.accounts))
|
||||
else:
|
||||
await self._report_state()
|
||||
self.on_transaction.listen(self._reset_balance_cache)
|
||||
|
||||
async def _report_state(self):
|
||||
|
|
Loading…
Reference in a new issue