diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 4ab5c6a3b6..cbf78a68c6 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -342,6 +342,11 @@ std::shared_ptr CreateWallet(interfaces::Chain& chain, const std::strin // Write the wallet settings UpdateWalletSetting(chain, name, load_on_start, warnings); + // Legacy wallets are being deprecated, warn if a newly created wallet is legacy + if (!(wallet_creation_flags & WALLET_FLAG_DESCRIPTORS)) { + warnings.push_back(_("Wallet created successfully. The legacy wallet type is being deprecated and support for creating and opening legacy wallets will be removed in the future.")); + } + status = DatabaseStatus::SUCCESS; return wallet; }