Make UpgradeKeyMetadata work only on LegacyScriptPubKeyMan
This commit is contained in:
1 parent
4a7e43e846
commit
01b4511206
1 file changed
+5
-2
@@ -265,9 +265,12 @@ void CWallet::UpgradeKeyMetadata()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_spk_man) {
|
auto spk_man = GetLegacyScriptPubKeyMan();
|
||||||
m_spk_man->UpgradeKeyMetadata();
|
if (!spk_man) {
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
spk_man->UpgradeKeyMetadata();
|
||||||
SetWalletFlag(WALLET_FLAG_KEY_ORIGIN_METADATA);
|
SetWalletFlag(WALLET_FLAG_KEY_ORIGIN_METADATA);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user