Skip to content

Commit d3c5e47

Browse files
wallet, refactor: Remove Legacy check and error
Remove dead code due to legacy wallet removal.
1 parent 30c6f64 commit d3c5e47

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/wallet/wallet.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3656,9 +3656,7 @@ util::Result<std::reference_wrapper<DescriptorScriptPubKeyMan>> CWallet::AddWall
36563656
{
36573657
AssertLockHeld(cs_wallet);
36583658

3659-
if (!IsWalletFlagSet(WALLET_FLAG_DESCRIPTORS)) {
3660-
return util::Error{_("Cannot add WalletDescriptor to a non-descriptor wallet")};
3661-
}
3659+
Assert(IsWalletFlagSet(WALLET_FLAG_DESCRIPTORS));
36623660

36633661
auto spk_man = GetDescriptorScriptPubKeyMan(desc);
36643662
if (spk_man) {

0 commit comments

Comments
 (0)