mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-02 09:46:52 -05:00
Create LegacyScriptPubKeyMan when not a descriptor wallet
This commit is contained in:
parent
aeac157c9d
commit
6b13cd3fa8
1 changed files with 4 additions and 2 deletions
|
@ -3834,8 +3834,10 @@ std::shared_ptr<CWallet> CWallet::CreateWalletFromFile(interfaces::Chain& chain,
|
|||
|
||||
walletInstance->SetWalletFlags(wallet_creation_flags, false);
|
||||
|
||||
// Always create LegacyScriptPubKeyMan for now
|
||||
walletInstance->SetupLegacyScriptPubKeyMan();
|
||||
// Only create LegacyScriptPubKeyMan when not descriptor wallet
|
||||
if (!walletInstance->IsWalletFlagSet(WALLET_FLAG_DESCRIPTORS)) {
|
||||
walletInstance->SetupLegacyScriptPubKeyMan();
|
||||
}
|
||||
|
||||
if (!(wallet_creation_flags & (WALLET_FLAG_DISABLE_PRIVATE_KEYS | WALLET_FLAG_BLANK_WALLET))) {
|
||||
LOCK(walletInstance->cs_wallet);
|
||||
|
|
Loading…
Add table
Reference in a new issue