86+ FlatSigningProvider provider;
87+ std::string error;
88+ auto descs{Parse(desc_str, provider, error, /* require_checksum=*/ false)};
89+ auto& desc{descs.at(0)};
90+ WalletDescriptor w_desc{std::move(desc), 0, 0, 0, 0};
91+ auto spk_manager{*Assert(wallet.AddWalletDescriptor(w_desc, provider, "", false))};
I do not see the call to the function DescriptorScriptPubKeyMan::CanUpdateToWalletDescriptor()
being made in this test case?
Calling AddWalletDescriptor with a descriptor that’s already in wallet, calls UpdateWalletDescriptor which calls CanUpdateWalletDescriptor. This is what happens on the second call to AddWalletDescriptor.