Skip to content

Commit bbb42a6

Browse files
committed
RPC: createwallet: Nicer error message if descriptor wallet requested and sqlite support not compiled in
1 parent 6608fec commit bbb42a6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/wallet/rpcwallet.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2740,6 +2740,9 @@ static RPCHelpMan createwallet()
27402740
flags |= WALLET_FLAG_AVOID_REUSE;
27412741
}
27422742
if (!request.params[5].isNull() && request.params[5].get_bool()) {
2743+
#ifndef USE_SQLITE
2744+
throw JSONRPCError(RPC_WALLET_ERROR, "Compiled without sqlite support (required for descriptor wallets)");
2745+
#endif
27432746
flags |= WALLET_FLAG_DESCRIPTORS;
27442747
warnings.emplace_back(Untranslated("Wallet is an experimental descriptor wallet"));
27452748
}

0 commit comments

Comments
 (0)