From ee84253b90562f37c88d25174f4ddca2493f8b02 Mon Sep 17 00:00:00 2001 From: Kay Kurokawa Date: Mon, 23 Jan 2017 18:55:20 -0500 Subject: [PATCH] add warning for large wallet sizes --- lbrynet/core/Wallet.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lbrynet/core/Wallet.py b/lbrynet/core/Wallet.py index 6135a5b7e..9c4f56f1c 100644 --- a/lbrynet/core/Wallet.py +++ b/lbrynet/core/Wallet.py @@ -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()