Repository navigation
wallet: Add a deprecation warning for newly created legacy wallets - #24505
Conversation
|
Concept ACK |
|
ACK 6c629fe |
|
Concept NACK on removal. Users shouldn't be forced to upgrade their wallets (especially not on such a short timeline). |
|
Concept ACK @luke-jr this just adds the warning when a wallet is created, nothing is removed nor an upgrade is enforced. When do you think the warning is okay? |
|
The warning text says it will be removed. And if the user has to explicitly choose to create it, I don't see why a warning is really needed at all. |
|
Concept ACK on discouraging creating new legacy wallets. Agree that the code to support them shouldn't be removed any time soon, but that kind of policy discussion is out of scope here. |
|
ACK 6c629fe292bbb14d65455158fa38e869bdb17921 |
|
Wouldn't it be better to update the RPC doc instead? This way the user will see the warning before creating the wallet. |
jonatack
left a comment
There was a problem hiding this comment.
I agree with @MarcoFalke that the RPC help would need to be updated, either first or at the same time, per the principle of least surprise to the user.
6c629fe to
8118304
Compare
|
Added a warning to the RPC help. |
8118304 to
6115218
Compare
|
ACK 6115218 Tested the help and the test with logging the result |
theStack
left a comment
There was a problem hiding this comment.
ACK 6115218
$ ./src/bitcoin-cli -regtest -named createwallet wallet_name=wallet_native descriptors=false
{
"name": "wallet_native",
"warning": "Wallet created successfully. The legacy wallet type is being deprecated and support for creating and opening legacy wallets will be removed in the future."
}
$ ./src/bitcoin-cli -regtest -named createwallet wallet_name=wallet_desc descriptors=true
{
"name": "wallet_desc",
"warning": ""
}
$ ./src/bitcoin-cli -regtest help createwallet | grep "6. descriptors"
6. descriptors (boolean, optional, default=true) Create a native descriptor wallet. The wallet will use descriptors internally to handle address creation. Setting to "false" will create a legacy wallet; however, the legacy wallet type is being deprecated and support for creating and opening legacy wallets will be removed in the future.
|
reACK 6115218 |
Added in bitcoin/bitcoin#24505 "Wallet created successfully. The legacy wallet type is being deprecated and support for creating and opening legacy wallets will be removed in the future."
Added in bitcoin/bitcoin#24505 "Wallet created successfully. The legacy wallet type is being deprecated and support for creating and opening legacy wallets will be removed in the future."
Added in bitcoin/bitcoin#24505 "Wallet created successfully. The legacy wallet type is being deprecated and support for creating and opening legacy wallets will be removed in the future."
Added in bitcoin/bitcoin#24505 "Wallet created successfully. The legacy wallet type is being deprecated and support for creating and opening legacy wallets will be removed in the future."
Added in bitcoin/bitcoin#24505 "Wallet created successfully. The legacy wallet type is being deprecated and support for creating and opening legacy wallets will be removed in the future."
As we slowly deprecate legacy wallets, we need to warn users that are making new legacy wallets that their wallet type is going to be unsupported in the future.