mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-02 09:46:52 -05:00
RPC: createwallet: Nicer error message if descriptor wallet requested and sqlite support not compiled in
This commit is contained in:
parent
6608fec332
commit
bbb42a6896
1 changed files with 3 additions and 0 deletions
|
@ -2740,6 +2740,9 @@ static RPCHelpMan createwallet()
|
|||
flags |= WALLET_FLAG_AVOID_REUSE;
|
||||
}
|
||||
if (!request.params[5].isNull() && request.params[5].get_bool()) {
|
||||
#ifndef USE_SQLITE
|
||||
throw JSONRPCError(RPC_WALLET_ERROR, "Compiled without sqlite support (required for descriptor wallets)");
|
||||
#endif
|
||||
flags |= WALLET_FLAG_DESCRIPTORS;
|
||||
warnings.emplace_back(Untranslated("Wallet is an experimental descriptor wallet"));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue