Skip to content

Commit ba01585

Browse files
committed
wallet: MigrateToDescriptor no longer calls CanSupportFeature
1 parent 63acee2 commit ba01585

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/wallet/scriptpubkeyman.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,10 +624,13 @@ std::optional<MigrationData> LegacyDataSPKM::MigrateToDescriptor()
624624
for (const auto& chain_pair : m_inactive_hd_chains) {
625625
chains.push_back(chain_pair.second);
626626
}
627+
628+
bool can_support_hd_split_feature = m_hd_chain.nVersion >= CHDChain::VERSION_HD_CHAIN_SPLIT;
629+
627630
for (const CHDChain& chain : chains) {
628631
for (int i = 0; i < 2; ++i) {
629632
// Skip if doing internal chain and split chain is not supported
630-
if (chain.seed_id.IsNull() || (i == 1 && !m_storage.CanSupportFeature(FEATURE_HD_SPLIT))) {
633+
if (chain.seed_id.IsNull() || (i == 1 && !can_support_hd_split_feature)) {
631634
continue;
632635
}
633636
// Get the master xprv

0 commit comments

Comments
 (0)