We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17c0131 commit afcd77eCopy full SHA for afcd77e
src/wallet/wallet.cpp
@@ -3236,6 +3236,13 @@ bool CWallet::InitLoadWallet()
3236
3237
walletInstance->SetBestChain(chainActive.GetLocator());
3238
}
3239
+ else if (mapArgs.count("-usehd")) {
3240
+ bool useHD = GetBoolArg("-usehd", DEFAULT_USE_HD_WALLET);
3241
+ if (!walletInstance->hdChain.masterKeyID.IsNull() && !useHD)
3242
+ return InitError(strprintf(_("Error loading %s: You can't disable HD on a already existing HD wallet"), walletFile));
3243
+ if (walletInstance->hdChain.masterKeyID.IsNull() && useHD)
3244
+ return InitError(strprintf(_("Error loading %s: You can't enable HD on a already existing non-HD wallet"), walletFile));
3245
+ }
3246
3247
LogPrintf(" wallet %15dms\n", GetTimeMillis() - nStart);
3248
0 commit comments