|
|
|
@ -3236,6 +3236,13 @@ bool CWallet::InitLoadWallet()
@@ -3236,6 +3236,13 @@ bool CWallet::InitLoadWallet()
|
|
|
|
|
|
|
|
|
|
walletInstance->SetBestChain(chainActive.GetLocator()); |
|
|
|
|
} |
|
|
|
|
else if (mapArgs.count("-usehd")) { |
|
|
|
|
bool useHD = GetBoolArg("-usehd", DEFAULT_USE_HD_WALLET); |
|
|
|
|
if (!walletInstance->hdChain.masterKeyID.IsNull() && !useHD) |
|
|
|
|
return InitError(strprintf(_("Error loading %s: You can't disable HD on a already existing HD wallet"), walletFile)); |
|
|
|
|
if (walletInstance->hdChain.masterKeyID.IsNull() && useHD) |
|
|
|
|
return InitError(strprintf(_("Error loading %s: You can't enable HD on a already existing non-HD wallet"), walletFile)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
LogPrintf(" wallet %15dms\n", GetTimeMillis() - nStart); |
|
|
|
|
|
|
|
|
|