Ensure Dash wallets < 0.12.2 can't open HD wallets (#1638)

This commit is contained in:
Alexander Block 2017-09-19 16:52:29 +02:00 committed by UdjinM6
parent 026ad8421a
commit 7ab175a8e3

View File

@ -1724,6 +1724,9 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
return InitError(_("Mnemonic passphrase is too long, must be at most 256 characters"));
// generate a new master key
pwalletMain->GenerateNewHDChain();
// ensure this wallet.dat can only be opened by clients supporting HD
pwalletMain->SetMinVersion(FEATURE_HD);
}
CPubKey newDefaultKey;