From 0d32d661481f099af572e7a08a50e17bcc165c44 Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Sat, 6 Apr 2019 12:56:15 -0400 Subject: Remove -upgradewallet startup option --- src/wallet/wallet.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/wallet/wallet.cpp') diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index c16fb80b9e..081bb4320b 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -3830,12 +3830,6 @@ std::shared_ptr CWallet::CreateWalletFromFile(interfaces::Chain& chain, } } - if (gArgs.GetBoolArg("-upgradewallet", false)) { - if (!UpgradeWallet(gArgs.GetBoolArg("-upgradewallet", 0), error, warnings)) { - return nullptr; - } - } - if (fFirstRun) { // ensure this wallet.dat can only be opened by clients supporting HD with chain split and expects no default key @@ -4121,7 +4115,7 @@ bool CWallet::UpgradeWallet(int version, std::string& error, std::vector= FEATURE_HD_SPLIT && max_version < FEATURE_PRE_SPLIT_KEYPOOL) { - error = _("Cannot upgrade a non HD split wallet without upgrading to support pre split keypool. Please use -upgradewallet=169900 or -upgradewallet with no version specified.").translated; + error = _("Cannot upgrade a non HD split wallet without upgrading to support pre split keypool. Please use version 169900 or no version specified.").translated; return false; } -- cgit v1.2.3