wallet, refactor: Remove Legacy check and error
Remove dead code due to legacy wallet removal.
This commit is contained in:
1 parent
30c6f64eed
commit
d3c5e47391
1 file changed
+1
-3
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user