We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
MigrateToDescriptor
CanSupportFeature
1 parent 63acee2 commit ba01585Copy full SHA for ba01585
src/wallet/scriptpubkeyman.cpp
@@ -624,10 +624,13 @@ std::optional<MigrationData> LegacyDataSPKM::MigrateToDescriptor()
624
for (const auto& chain_pair : m_inactive_hd_chains) {
625
chains.push_back(chain_pair.second);
626
}
627
+
628
+ bool can_support_hd_split_feature = m_hd_chain.nVersion >= CHDChain::VERSION_HD_CHAIN_SPLIT;
629
630
for (const CHDChain& chain : chains) {
631
for (int i = 0; i < 2; ++i) {
632
// Skip if doing internal chain and split chain is not supported
- 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)) {
634
continue;
635
636
// Get the master xprv
0 commit comments