Skip to content

Commit 1e2ed09

Browse files
committed
Revert "wallet: No BDB creation, unless -deprecatedrpc=create_bdb"
This partially reverts commit fa071ae.
1 parent aefb4c4 commit 1e2ed09

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/wallet/rpc/wallet.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ static RPCHelpMan createwallet()
343343
{"passphrase", RPCArg::Type::STR, RPCArg::Optional::OMITTED, "Encrypt the wallet with this passphrase."},
344344
{"avoid_reuse", RPCArg::Type::BOOL, RPCArg::Default{false}, "Keep track of coin reuse, and treat dirty and clean coins differently with privacy considerations in mind."},
345345
{"descriptors", RPCArg::Type::BOOL, RPCArg::Default{true}, "Create a native descriptor wallet. The wallet will use descriptors internally to handle address creation."
346-
" Setting to \"false\" will create a legacy wallet; This is only possible with the -deprecatedrpc=create_bdb setting because, the legacy wallet type is being deprecated and"
346+
" Setting to \"false\" will create a legacy wallet; however, the legacy wallet type is being deprecated and"
347347
" support for creating and opening legacy wallets will be removed in the future."},
348348
{"load_on_startup", RPCArg::Type::BOOL, RPCArg::Optional::OMITTED, "Save wallet name to persistent settings and load on startup. True to add wallet to startup list, false to remove, null to leave unchanged."},
349349
{"external_signer", RPCArg::Type::BOOL, RPCArg::Default{false}, "Use an external signer such as a hardware wallet. Requires -signer to be configured. Wallet creation will fail if keys cannot be fetched. Requires disable_private_keys and descriptors set to true."},
@@ -394,11 +394,6 @@ static RPCHelpMan createwallet()
394394
throw JSONRPCError(RPC_WALLET_ERROR, "Compiled without sqlite support (required for descriptor wallets)");
395395
#endif
396396
flags |= WALLET_FLAG_DESCRIPTORS;
397-
} else {
398-
if (!context.chain->rpcEnableDeprecated("create_bdb")) {
399-
throw JSONRPCError(RPC_WALLET_ERROR, "BDB wallet creation is deprecated and will be removed in a future release."
400-
" In this release it can be re-enabled temporarily with the -deprecatedrpc=create_bdb setting.");
401-
}
402397
}
403398
if (!request.params[7].isNull() && request.params[7].get_bool()) {
404399
#ifdef ENABLE_EXTERNAL_SIGNER

0 commit comments

Comments
 (0)