mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-24 16:21:13 +02:00
wallet: MigrateToDescriptor
no longer calls CanSupportFeature
This commit is contained in:
@@ -624,10 +624,13 @@ std::optional<MigrationData> LegacyDataSPKM::MigrateToDescriptor()
|
||||
for (const auto& chain_pair : m_inactive_hd_chains) {
|
||||
chains.push_back(chain_pair.second);
|
||||
}
|
||||
|
||||
bool can_support_hd_split_feature = m_hd_chain.nVersion >= CHDChain::VERSION_HD_CHAIN_SPLIT;
|
||||
|
||||
for (const CHDChain& chain : chains) {
|
||||
for (int i = 0; i < 2; ++i) {
|
||||
// Skip if doing internal chain and split chain is not supported
|
||||
if (chain.seed_id.IsNull() || (i == 1 && !m_storage.CanSupportFeature(FEATURE_HD_SPLIT))) {
|
||||
if (chain.seed_id.IsNull() || (i == 1 && !can_support_hd_split_feature)) {
|
||||
continue;
|
||||
}
|
||||
// Get the master xprv
|
||||
|
Reference in New Issue
Block a user