We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30c6f64 commit d3c5e47Copy full SHA for d3c5e47
src/wallet/wallet.cpp
@@ -3656,9 +3656,7 @@ util::Result<std::reference_wrapper<DescriptorScriptPubKeyMan>> CWallet::AddWall
3656
{
3657
AssertLockHeld(cs_wallet);
3658
3659
- if (!IsWalletFlagSet(WALLET_FLAG_DESCRIPTORS)) {
3660
- return util::Error{_("Cannot add WalletDescriptor to a non-descriptor wallet")};
3661
- }
+ Assert(IsWalletFlagSet(WALLET_FLAG_DESCRIPTORS));
3662
3663
auto spk_man = GetDescriptorScriptPubKeyMan(desc);
3664
if (spk_man) {
0 commit comments