only log account details on startup if there are not very many

This commit is contained in:
Jack Robison 2019-12-30 16:22:41 -05:00
parent 88faf0ce78
commit 09c2c97069
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -107,6 +107,9 @@ 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))
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)