followups up from #32438 (comment) to add coverage for upgradewallet rpc. PR adds 2 test cases , trying to upgrade from the latest version and asserting it stays the same and trying to downgrade from the latest version. Test case to actually upgrade is not possible currently since the createwallet rpc by default creates wallet with version FEATURE_LATEST which is the highest.
test: add functional test for upgradewallet rpc #32803
pull Prabhat1308 wants to merge 1 commits into bitcoin:master from Prabhat1308:probot/test_upgradewallet_rpc changing 2 files +56 −0-
Prabhat1308 commented at 3:20 PM on June 24, 2025: contributor
- DrahtBot added the label Tests on Jun 24, 2025
-
DrahtBot commented at 3:20 PM on June 24, 2025: contributor
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--006a51241073e994b41acfe9ec718e94-->
Code Coverage & Benchmarks
For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/32803.
<!--021abf342d371248e50ceaed478a90ca-->
Reviews
See the guideline for information on the review process. A summary of reviews will appear here.
<!--5faf32d7da4f0f540f40219e4f7537a3-->
- Prabhat1308 force-pushed on Jun 24, 2025
- DrahtBot added the label CI failed on Jun 24, 2025
-
DrahtBot commented at 3:28 PM on June 24, 2025: contributor
<!--85328a0da195eb286784d51f73fa0af9-->
🚧 At least one of the CI tasks failed. <sub>Task
lint: https://github.com/bitcoin/bitcoin/runs/44696601189</sub> <sub>LLM reason (✨ experimental): Lint check failed due to trailing whitespace and missing trailing newline in the code.</sub><details><summary>Hints</summary>
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.
</details>
- Prabhat1308 force-pushed on Jun 24, 2025
-
maflcko commented at 3:34 PM on June 24, 2025: member
are there any plans that the rpc will be used anytime soon in the next couple of years? If not, it could make sense to just remove it, and add it back, in the unlikely case it will be used?
-
Prabhat1308 commented at 4:23 PM on June 24, 2025: contributor
are there any plans that the rpc will be used anytime soon in the next couple of years? If not, it could make sense to just remove it, and add it back, in the unlikely case it will be used?
Looking through the code this is pretty much a dead rpc where no one can use it to actually upgrade wallet and there is only 1 check that
multiwalletcan't call it before this PR . I am not very sure about what the future plans are for wallet but the only case where I see this being used is if there is a need to upgradewallet version toquantum-compatiblewallets. Other than that I see no future use case of the rpc in the near future. -
Prabhat1308 commented at 4:59 PM on June 24, 2025: contributor
I am not so sure why the CI fails to call
createwalletfor the added test while works on other rpc tests . Will try to debug -
pablomartin4btc commented at 6:03 PM on June 24, 2025: member
You need to add this (CI "no wallet..." failure) to
test/functional/rpc_upgradewallet.py:def skip_test_if_missing_module(self): self.skip_if_no_wallet() - Prabhat1308 force-pushed on Jun 24, 2025
- Prabhat1308 force-pushed on Jun 24, 2025
-
cead0fa5fa
add functional test for upgradewallet rpc
Adds functional test to add coverage for upgradewallet rpc .
- Prabhat1308 force-pushed on Jun 24, 2025
-
pablomartin4btc commented at 6:44 PM on June 24, 2025: member
- DrahtBot removed the label CI failed on Jun 24, 2025
-
Prabhat1308 commented at 6:48 AM on July 11, 2025: contributor
closing in favour of #32944
- Prabhat1308 closed this on Jul 11, 2025
- Prabhat1308 deleted the branch on Jul 11, 2025