wallet, refactor: Remove Legacy check and error

Remove dead code due to legacy wallet removal.
This commit is contained in:
pablomartin4btc committed 2025-08-22 16:49:14 -03:00
1 parent 30c6f64eed
commit d3c5e47391
1 file changed
+1 -3
+1 -3
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) {