mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-17 05:30:43 +02:00
Add missing SetupGeneration error handling in EncryptWallet
Suggested https://github.com/bitcoin/bitcoin/pull/17304#discussion_r341286026 by me
This commit is contained in:
parent
bfd826a675
commit
05b224a175
@ -572,7 +572,9 @@ bool CWallet::EncryptWallet(const SecureString& strWalletPassphrase)
|
|||||||
// if we are using HD, replace the HD seed with a new one
|
// if we are using HD, replace the HD seed with a new one
|
||||||
if (auto spk_man = m_spk_man.get()) {
|
if (auto spk_man = m_spk_man.get()) {
|
||||||
if (spk_man->IsHDEnabled()) {
|
if (spk_man->IsHDEnabled()) {
|
||||||
spk_man->SetupGeneration(true);
|
if (!spk_man->SetupGeneration(true)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Lock();
|
Lock();
|
||||||
|
Loading…
Reference in New Issue
Block a user