wallet, refactor: Remove Legacy check and error

Remove dead code due to legacy wallet removal.
This commit is contained in:
pablomartin4btc 2025-07-28 15:30:11 -03:00
parent 30c6f64eed
commit d3c5e47391

View File

@ -3656,9 +3656,7 @@ util::Result<std::reference_wrapper<DescriptorScriptPubKeyMan>> CWallet::AddWall
{
AssertLockHeld(cs_wallet);
if (!IsWalletFlagSet(WALLET_FLAG_DESCRIPTORS)) {
return util::Error{_("Cannot add WalletDescriptor to a non-descriptor wallet")};
}
Assert(IsWalletFlagSet(WALLET_FLAG_DESCRIPTORS));
auto spk_man = GetDescriptorScriptPubKeyMan(desc);
if (spk_man) {