add warning for large wallet sizes

This commit is contained in:
Kay Kurokawa 2017-01-23 18:55:20 -05:00
parent 7696f30009
commit ee84253b90

View file

@ -946,8 +946,14 @@ class LBRYumWallet(Wallet):
wallet.create_main_account()
wallet.synchronize()
self.wallet = wallet
self._check_large_wallet()
return defer.succeed(True)
def _check_large_wallet(self):
if len(self.wallet.addresses(include_change=False)) > 1000:
log.warning("Your wallet is excessively large, please follow instructions here: \
https://github.com/lbryio/lbry/issues/437 to reduce your wallet size")
def _load_blockchain(self):
blockchain_caught_d = defer.Deferred()