diff options
author | Andrew Chow <achow101-github@achow101.com> | 2019-04-22 00:09:39 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2020-04-13 13:21:01 -0400 |
commit | 183323712398e26ddcf3a9dc048aaa9900a91f5a (patch) | |
tree | 08abb2af1305c8248e251de3e233c39d2b42df4f /src/wallet/wallet.h | |
parent | 9c16b1735f8e530ce68d678e9ca0eceb2ceb3520 (diff) | |
download | bitcoin-183323712398e26ddcf3a9dc048aaa9900a91f5a.tar.xz |
Only run UpgradeWallet if the wallet needs to be upgraded
Diffstat (limited to 'src/wallet/wallet.h')
-rw-r--r-- | src/wallet/wallet.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index 776187fcac..669e3a33f2 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -1176,7 +1176,7 @@ public: }; /** Upgrade the wallet */ - static bool UpgradeWallet(std::shared_ptr<CWallet> wallet, bool first_run, std::string& error, std::vector<std::string>& warnings); + static bool UpgradeWallet(std::shared_ptr<CWallet> wallet, std::string& error, std::vector<std::string>& warnings); //! Returns all unique ScriptPubKeyMans in m_internal_spk_managers and m_external_spk_managers std::set<ScriptPubKeyMan*> GetActiveScriptPubKeyMans() const; |