mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
fix: descriptor wallets follow-up to merge bitcoin#20202: Make BDB support optional
This commit is contained in:
parent
a340ad641e
commit
f6b3614754
@ -43,7 +43,7 @@ Optional dependencies:
|
|||||||
gmp | Optimized math routines | Arbitrary precision arithmetic library
|
gmp | Optimized math routines | Arbitrary precision arithmetic library
|
||||||
miniupnpc | UPnP Support | Firewall-jumping support
|
miniupnpc | UPnP Support | Firewall-jumping support
|
||||||
libnatpmp | NAT-PMP Support | Firewall-jumping support
|
libnatpmp | NAT-PMP Support | Firewall-jumping support
|
||||||
libdb4.8 | Berkeley DB | Wallet storage (only needed when wallet enabled)
|
libdb4.8 | Berkeley DB | Optional, wallet storage (only needed when wallet enabled)
|
||||||
qt | GUI | GUI toolkit (only needed when GUI enabled)
|
qt | GUI | GUI toolkit (only needed when GUI enabled)
|
||||||
libqrencode | QR codes in GUI | Optional for generating QR codes (only needed when GUI enabled)
|
libqrencode | QR codes in GUI | Optional for generating QR codes (only needed when GUI enabled)
|
||||||
libzmq3 | ZMQ notification | Optional, allows generating ZMQ notifications (requires ZMQ version >= 4.0.0)
|
libzmq3 | ZMQ notification | Optional, allows generating ZMQ notifications (requires ZMQ version >= 4.0.0)
|
||||||
|
@ -57,6 +57,10 @@ CreateWalletDialog::CreateWalletDialog(QWidget* parent) :
|
|||||||
ui->descriptor_checkbox->setEnabled(false);
|
ui->descriptor_checkbox->setEnabled(false);
|
||||||
ui->descriptor_checkbox->setChecked(false);
|
ui->descriptor_checkbox->setChecked(false);
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef USE_BDB
|
||||||
|
ui->descriptor_checkbox->setEnabled(false);
|
||||||
|
ui->descriptor_checkbox->setChecked(true);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
CreateWalletDialog::~CreateWalletDialog()
|
CreateWalletDialog::~CreateWalletDialog()
|
||||||
|
@ -2941,6 +2941,11 @@ static UniValue createwallet(const JSONRPCRequest& request)
|
|||||||
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…
Reference in New Issue
Block a user