Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.cpp
Show First 20 Lines • Show All 4,087 Lines • ▼ Show 20 Lines | if (gArgs.GetBoolArg("-upgradewallet", false)) { | ||||
"support pre split keypool. Please use -upgradewallet=200300 " | "support pre split keypool. Please use -upgradewallet=200300 " | ||||
"or -upgradewallet with no version specified.") | "or -upgradewallet with no version specified.") | ||||
.translated; | .translated; | ||||
return nullptr; | return nullptr; | ||||
} | } | ||||
if (auto spk_man = walletInstance->m_spk_man.get()) { | if (auto spk_man = walletInstance->m_spk_man.get()) { | ||||
if (!spk_man->Upgrade(prev_version, error)) { | if (!spk_man->Upgrade(prev_version, error)) { | ||||
chain.initError(error); | |||||
return nullptr; | return nullptr; | ||||
} | } | ||||
} | } | ||||
} | } | ||||
if (fFirstRun) { | if (fFirstRun) { | ||||
// Ensure this wallet.dat can only be opened by clients supporting | // Ensure this wallet.dat can only be opened by clients supporting | ||||
// HD with chain split and expects no default key. | // HD with chain split and expects no default key. | ||||
▲ Show 20 Lines • Show All 414 Lines • Show Last 20 Lines |