[Wallet] Ensure <0.13 clients can't open HD wallets

3b38a6a96a
This commit is contained in:
lateminer
2018-01-02 13:18:39 +03:00
parent 09176edb18
commit 138d9e7f56
2 changed files with 3 additions and 2 deletions

View File

@@ -1546,8 +1546,6 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
key.MakeNewKey(true);
if (!pwalletMain->SetHDMasterKey(key))
throw std::runtime_error("CWallet::GenerateNewKey(): Storing master key failed");
// ensure this wallet.dat can only be opened by clients supporting HD
pwalletMain->SetMinVersion(FEATURE_HD);
}
CPubKey newDefaultKey;
if (pwalletMain->GetKeyFromPool(newDefaultKey)) {