mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-20 08:53:36 +02:00
Make UpgradeKeyMetadata work only on LegacyScriptPubKeyMan
This commit is contained in:
parent
4a7e43e846
commit
01b4511206
@ -265,9 +265,12 @@ void CWallet::UpgradeKeyMetadata()
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_spk_man) {
|
||||
m_spk_man->UpgradeKeyMetadata();
|
||||
auto spk_man = GetLegacyScriptPubKeyMan();
|
||||
if (!spk_man) {
|
||||
return;
|
||||
}
|
||||
|
||||
spk_man->UpgradeKeyMetadata();
|
||||
SetWalletFlag(WALLET_FLAG_KEY_ORIGIN_METADATA);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user