-
Notifications
You must be signed in to change notification settings - Fork 37.7k
test: add functional test for upgradewallet rpc #32803
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: add functional test for upgradewallet rpc #32803
Conversation
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code Coverage & BenchmarksFor details see: https://corecheck.dev/bitcoin/bitcoin/pulls/32803. ReviewsSee the guideline for information on the review process. |
833e348
to
bc0c282
Compare
🚧 At least one of the CI tasks failed. HintsTry to run the tests locally, according to the documentation. However, a CI failure may still
Leave a comment here, if you need help tracking down a confusing failure. |
bc0c282
to
8621333
Compare
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 |
I am not so sure why the CI fails to call |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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()
e25a15f
to
1d7b395
Compare
Adds functional test to add coverage for upgradewallet rpc .
1d7b395
to
cead0fa
Compare
closing in favour of #32944 |
d89c6fa wallet: Remove `upgradewallet` RPC (w0xlt) Pull request description: Based on discussions in #32803, this PR proposes removing the ` upgradewallet` RPC. ACKs for top commit: maflcko: review ACK d89c6fa 🤙 achow101: ACK d89c6fa pablomartin4btc: ACK d89c6fa brunoerg: Concept & light cr ACK d89c6fa Tree-SHA512: 9ab89c9137ff83d7826da6b9d00d3617149a5d144129086a2685ee525087534c5ed06259075c0689ded52d33e075acb5067d185be04ecc638e27469f958f9a56
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 thecreatewallet
rpc by default creates wallet with versionFEATURE_LATEST
which is the highest.