File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed
Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ Optional dependencies:
4343 gmp | Optimized math routines | Arbitrary precision arithmetic library
4444 miniupnpc | UPnP Support | Firewall-jumping support
4545 libnatpmp | NAT-PMP Support | Firewall-jumping support
46- libdb4.8 | Berkeley DB | Wallet storage (only needed when wallet enabled)
46+ libdb4.8 | Berkeley DB | Optional, wallet storage (only needed when wallet enabled)
4747 qt | GUI | GUI toolkit (only needed when GUI enabled)
4848 libqrencode | QR codes in GUI | Optional for generating QR codes (only needed when GUI enabled)
4949 libzmq3 | ZMQ notification | Optional, allows generating ZMQ notifications (requires ZMQ version >= 4.0.0)
Original file line number Diff line number Diff line change @@ -57,6 +57,10 @@ CreateWalletDialog::CreateWalletDialog(QWidget* parent) :
5757 ui->descriptor_checkbox ->setEnabled (false );
5858 ui->descriptor_checkbox ->setChecked (false );
5959#endif
60+ #ifndef USE_BDB
61+ ui->descriptor_checkbox ->setEnabled (false );
62+ ui->descriptor_checkbox ->setChecked (true );
63+ #endif
6064}
6165
6266CreateWalletDialog::~CreateWalletDialog ()
Original file line number Diff line number Diff line change @@ -2941,6 +2941,11 @@ static UniValue createwallet(const JSONRPCRequest& request)
29412941 warnings.emplace_back (Untranslated (" Wallet is an experimental descriptor wallet" ));
29422942 }
29432943
2944+ #ifndef USE_BDB
2945+ if (!(flags & WALLET_FLAG_DESCRIPTORS)) {
2946+ throw JSONRPCError (RPC_WALLET_ERROR, " Compiled without bdb support (required for legacy wallets)" );
2947+ }
2948+ #endif
29442949 DatabaseOptions options;
29452950 DatabaseStatus status;
29462951 options.require_create = true ;
You can’t perform that action at this time.
0 commit comments