Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.cpp
Show First 20 Lines • Show All 4,640 Lines • ▼ Show 20 Lines | if (fFirstRun) { | ||||
// Top up the keypool | // Top up the keypool | ||||
if (walletInstance->CanGenerateKeys() && | if (walletInstance->CanGenerateKeys() && | ||||
!walletInstance->TopUpKeyPool()) { | !walletInstance->TopUpKeyPool()) { | ||||
chain.initError(_("Unable to generate initial keys").translated); | chain.initError(_("Unable to generate initial keys").translated); | ||||
return nullptr; | return nullptr; | ||||
} | } | ||||
// Temporary. Removed in upcoming lock cleanup | auto locked_chain = chain.lock(); | ||||
auto locked_chain = chain.assumeLocked(); | |||||
walletInstance->ChainStateFlushed(locked_chain->getTipLocator()); | walletInstance->ChainStateFlushed(locked_chain->getTipLocator()); | ||||
} else if (wallet_creation_flags & WALLET_FLAG_DISABLE_PRIVATE_KEYS) { | } else if (wallet_creation_flags & WALLET_FLAG_DISABLE_PRIVATE_KEYS) { | ||||
// Make it impossible to disable private keys after creation | // Make it impossible to disable private keys after creation | ||||
chain.initError( | chain.initError( | ||||
strprintf(_("Error loading %s: Private keys can only be " | strprintf(_("Error loading %s: Private keys can only be " | ||||
"disabled during creation") | "disabled during creation") | ||||
.translated, | .translated, | ||||
walletFile)); | walletFile)); | ||||
▲ Show 20 Lines • Show All 365 Lines • Show Last 20 Lines |