Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.cpp
Show First 20 Lines • Show All 347 Lines • ▼ Show 20 Lines | if (!passphrase.empty() && | ||||
// Set a seed for the wallet | // Set a seed for the wallet | ||||
{ | { | ||||
LOCK(wallet->cs_wallet); | LOCK(wallet->cs_wallet); | ||||
if (wallet->IsWalletFlagSet(WALLET_FLAG_DESCRIPTORS)) { | if (wallet->IsWalletFlagSet(WALLET_FLAG_DESCRIPTORS)) { | ||||
wallet->SetupDescriptorScriptPubKeyMans(); | wallet->SetupDescriptorScriptPubKeyMans(); | ||||
} else { | } else { | ||||
for (auto spk_man : wallet->GetActiveScriptPubKeyMans()) { | for (auto spk_man : wallet->GetActiveScriptPubKeyMans()) { | ||||
if (!spk_man->SetupGeneration()) { | if (!spk_man->SetupGeneration()) { | ||||
error = Untranslated( | error = | ||||
"Unable to generate initial keys"); | Untranslated("Unable to generate initial keys"); | ||||
status = DatabaseStatus::FAILED_CREATE; | status = DatabaseStatus::FAILED_CREATE; | ||||
return nullptr; | return nullptr; | ||||
} | } | ||||
} | } | ||||
} | } | ||||
} | } | ||||
// Relock the wallet | // Relock the wallet | ||||
▲ Show 20 Lines • Show All 4,726 Lines • Show Last 20 Lines |