mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-18 21:01:22 +02:00
RPC: Require descriptors=True for createwallet when BDB is not compiled
This commit is contained in:
parent
6ebc41bf9c
commit
71e40b33bd
@ -2764,6 +2764,12 @@ static RPCHelpMan createwallet()
|
|||||||
warnings.emplace_back(Untranslated("Wallet is an experimental descriptor wallet"));
|
warnings.emplace_back(Untranslated("Wallet is an experimental descriptor wallet"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef USE_BDB
|
||||||
|
if (!(flags & WALLET_FLAG_DESCRIPTORS)) {
|
||||||
|
throw JSONRPCError(RPC_WALLET_ERROR, "Compiled without bdb support (required for legacy wallets)");
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
DatabaseOptions options;
|
DatabaseOptions options;
|
||||||
DatabaseStatus status;
|
DatabaseStatus status;
|
||||||
options.require_create = true;
|
options.require_create = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user