diff --git a/src/qt/createwalletdialog.cpp b/src/qt/createwalletdialog.cpp index 2ded6a1d89..d88c794a27 100644 --- a/src/qt/createwalletdialog.cpp +++ b/src/qt/createwalletdialog.cpp @@ -51,12 +51,9 @@ CreateWalletDialog::CreateWalletDialog(QWidget* parent) : } }); - #ifndef USE_SQLITE - ui->descriptor_checkbox->setToolTip(tr("Compiled without sqlite support (required for descriptor wallets)")); - ui->descriptor_checkbox->setEnabled(false); - ui->descriptor_checkbox->setChecked(false); - #endif - + ui->descriptor_checkbox->setToolTip("Coming Soon"); + ui->descriptor_checkbox->setEnabled(false); + ui->descriptor_checkbox->setChecked(false); } CreateWalletDialog::~CreateWalletDialog() diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 5c257aa7d8..a583c82c4a 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -249,7 +249,11 @@ std::shared_ptr CreateWallet(interfaces::Chain& chain, const std::strin uint64_t wallet_creation_flags = options.create_flags; const SecureString& passphrase = options.create_passphrase; - if (wallet_creation_flags & WALLET_FLAG_DESCRIPTORS) options.require_format = DatabaseFormat::SQLITE; + if (wallet_creation_flags & WALLET_FLAG_DESCRIPTORS) { + error = Untranslated("Descriptor wallets not supported.") + Untranslated(" ") + error; + status = DatabaseStatus::FAILED_CREATE; + return nullptr; + } // Indicate that the wallet is actually supposed to be blank and not just blank to make it encrypted bool create_blank = (wallet_creation_flags & WALLET_FLAG_BLANK_WALLET);