You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ce90f0c rpc, wallet, refactor: Remove non-descriptor errors (pablomartin4btc)
573bcd7 wallet, refactor: Remove unused SetupGeneration (pablomartin4btc)
5431f2d wallet, refactor: Remove Legacy warnings and errors (pablomartin4btc)
Pull request description:
Remove dead code due to legacy wallet support removal.
These changes have no impact on functionality. They are transparent to the end user, as legacy wallets can't be created or loaded anymore, so these checks are no longer reached. The legacy-to-descriptor wallet migration flow is not affected either, as these removals are not part of its process.
ACKs for top commit:
achow101:
ACK ce90f0c
rkrux:
utACK ce90f0c
Tree-SHA512: 9229ad9dda9ff1dece73b5b15a20d69c6ab1ff2c75b2ec430ddbbaeb3467f6a850f53df527bcb4a8114ccbf1aa9c794462d71a8d516aed6f9a9da74edae16feb
// Legacy wallets are being deprecated, warn if the loaded wallet is legacy
292
-
if (!wallet->IsWalletFlagSet(WALLET_FLAG_DESCRIPTORS)) {
293
-
warnings.emplace_back(_("Wallet loaded successfully. The legacy wallet type is being deprecated and support for creating and opening legacy wallets will be removed in the future. Legacy wallets can be migrated to a descriptor wallet with migratewallet."));
// Descriptor support must be enabled for an external signer wallet
408
-
if ((wallet_creation_flags & WALLET_FLAG_EXTERNAL_SIGNER) && !(wallet_creation_flags & WALLET_FLAG_DESCRIPTORS)) {
409
-
error = Untranslated("Descriptor support must be enabled when using an external signer");
410
-
status = DatabaseStatus::FAILED_CREATE;
411
-
returnnullptr;
412
-
}
413
-
414
399
// Do not allow a passphrase when private keys are disabled
415
400
if (!passphrase.empty() && (wallet_creation_flags & WALLET_FLAG_DISABLE_PRIVATE_KEYS)) {
416
401
error = Untranslated("Passphrase provided but private keys are disabled. A passphrase is only used to encrypt private keys, so cannot be used for wallets with private keys disabled.");
// Legacy wallets are being deprecated, warn if a newly created wallet is legacy
482
-
if (!(wallet_creation_flags & WALLET_FLAG_DESCRIPTORS)) {
483
-
warnings.emplace_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."));
0 commit comments