Repository navigation
wallet: Give deprecation warning when loading a legacy wallet - #27869
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
|
ACK 956d05b |
|
Concept ACK |
1 similar comment
|
Concept ACK |
darosior
left a comment
There was a problem hiding this comment.
Concept ACK. How about also logging for wallets that are loaded on startup?
956d05b to
2bf7183
Compare
|
ACK 2bf7183ea9b42a9edf76bccdf00708341a1d2c0a |
jonatack
left a comment
There was a problem hiding this comment.
ACK 2bf7183ea9b42a9edf76bccdf00708341a1d2c0a
Indeed, there is no debug log warning yet as suggested in #27869 (review).
Sanity check:
$ ./src/bitcoin-cli -signet listwallets
[
"sqlite3",
"bdb"
]
$ ./src/bitcoin-cli -signet unloadwallet bdb
{
}
$ ./src/bitcoin-cli -signet loadwallet bdb
{
"name": "bdb",
"warnings": [
"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."
]
}2bf7183 to
8fbb6e9
Compare
|
|
||
| // Legacy wallets are being deprecated, warn if the loaded wallet is legacy | ||
| if (!wallet->IsWalletFlagSet(WALLET_FLAG_DESCRIPTORS)) { | ||
| warnings.push_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.")); |
There was a problem hiding this comment.
nit, the similar warning at the end of CreateWallet() could be updated to use this expanded one
|
reACK 8fbb6e9 |

Next step in legacy wallet deprecation.