Although the minversion is not used by descriptor wallets, we should still update it to the latest version for consistency.
No test as any test requires very old versions of Bitcoin Core.
Although the minversion is not used by descriptor wallets, we should still update it to the latest version for consistency.
No test as any test requires very old versions of Bitcoin Core.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/33041.
See the guideline for information on the review process.
Type | Reviewers |
---|---|
ACK | pablomartin4btc, maflcko, w0xlt |
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
Possible typos and grammar issues:
drahtbot_id_4_m
🚧 At least one of the CI tasks failed.
Task MSan, depends
: https://github.com/bitcoin/bitcoin/runs/46518628354
LLM reason (✨ experimental): The CI failure is caused by a timeout in the bench_sanity_check test.
Try to run the tests locally, according to the documentation. However, a CI failure may still happen due to a number of reasons, for example:
Possibly due to a silent merge conflict (the changes in this pull request being incompatible with the current code in the target branch). If so, make sure to rebase on the latest commit of the target branch.
A sanitizer issue, which can only be found by compiling with the sanitizer and running the affected test.
An intermittent issue.
Leave a comment here, if you need help tracking down a confusing failure.
ACK 5aa758861cf1399842fd0bea3a42d5b0cafcb0f6
I’ve noticed this while reviewing the removal of upgradewallet
RPC PR.
Please consider also the version related functions removal PR, if you haven’t already, shouldn’t SetMinVersion
renamed? And perhaps change the first arg to a const
so we can remove the features enum
?
3877@@ -3878,6 +3878,9 @@ util::Result<void> CWallet::ApplyMigrationData(WalletBatch& local_wallet_batch,
3878 m_external_spk_managers.clear();
3879 m_internal_spk_managers.clear();
3880
3881+ // Set minversion to FEATURE_LATEST
3882+ SetMinVersion(FEATURE_LATEST, &local_wallet_batch);
How this is related with the SetMinVersion(FEATURE_LATEST
call during the wallet creation in the migration process?
Shouldn’t that instance of the call be removed as the one you are adding here is more generic?
Create
for the migrated wallet. It’s only used for the watchonly and solvables wallets.
No test as any test requires very old versions of Bitcoin Core.
It should be possible to test this, because only a wallet needs to be generated. I am happy to write one as a follow-up.
lgtm ACK 5aa758861cf1399842fd0bea3a42d5b0cafcb0f6
FEATURE_LATEST
is the only version being maintained in the practical sense and rename the function along the lines of SetVersion
. Then we can even go ahead with the modified #32977 cleanup .