Skip to content

Conversation

@brakmic
Copy link
Contributor

@brakmic brakmic commented Apr 26, 2020

This PR adds tests for the newly merged upgradewallet RPC.

Additionally, it expands test_framework/util.py by adding the function adjust_bitcoin_conf_for_pre_17 to support nodes that don't parse configuration sections.

This test uses two older node versions, v0.15.2 and v0.16.3, to create older wallet versions to be used by upgradewallet.

Fixes #18767

@DrahtBot DrahtBot added the Tests label Apr 26, 2020
@brakmic
Copy link
Contributor Author

brakmic commented Apr 26, 2020

@MarcoFalke
There are several error messages in travis that I don't know how to fix. Maybe because the v0.16.3 binaries are missing on test envs?

@maflcko
Copy link
Member

maflcko commented Apr 26, 2020

You'll also need to adjust ci/test/05_before_script.sh

@DrahtBot
Copy link
Contributor

DrahtBot commented Apr 26, 2020

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

No conflicts as of last run.

Copy link
Member

@achow101 achow101 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should be be testing the specific version upgrades too, but this is a good place to start with. Those can be added in later.

ACK 84267045efbfbe2a035e7f34851f1b3bc9964be8

Copy link
Member

@maflcko maflcko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

some more suggestions

Copy link
Member

@maflcko maflcko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK. Will be merged as soon as travis is green

@maflcko maflcko merged commit e302830 into bitcoin:master Apr 29, 2020
@brakmic brakmic deleted the upgradewallet-tests branch April 29, 2020 15:10
maflcko pushed a commit to maflcko/bitcoin-core that referenced this pull request May 8, 2020
…0.19.0.1 to v0.19.1

d135c29 [ci] make list of previous releases to download a setting (Sjors Provoost)
9c246b8 [test] backwards compatibility: bump v0.19.0.1 to v0.19.1 (Sjors Provoost)
89a28e0 [test] add v0.16.3 backwards compatibility test (Sjors Provoost)

Pull request description:

  Thanks to bitcoin#18774's `adjust_bitcoin_conf_for_pre_17` we can now test backwards compatibility for v0.16.3, both for sync and loading a recent wallet.

  This PR bumps v0.19.0.1 to v0.19.1.

  I also made the version list consistent for the `contrib/devtools/previous_release.sh` instruction, between both tests.

ACKs for top commit:
  MarcoFalke:
    ACK d135c29

Tree-SHA512: 5ff137a7a934237fa220f1c2807ce9abeeb75929266558bf3e4045bec7dfcd0a8747fa74d700065c568330b18badf58c60c308eb13d1eed444d4bbfe6decc48b
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request May 12, 2020
…0.19.0.1 to v0.19.1

d135c29 [ci] make list of previous releases to download a setting (Sjors Provoost)
9c246b8 [test] backwards compatibility: bump v0.19.0.1 to v0.19.1 (Sjors Provoost)
89a28e0 [test] add v0.16.3 backwards compatibility test (Sjors Provoost)

Pull request description:

  Thanks to bitcoin#18774's `adjust_bitcoin_conf_for_pre_17` we can now test backwards compatibility for v0.16.3, both for sync and loading a recent wallet.

  This PR bumps v0.19.0.1 to v0.19.1.

  I also made the version list consistent for the `contrib/devtools/previous_release.sh` instruction, between both tests.

ACKs for top commit:
  MarcoFalke:
    ACK d135c29

Tree-SHA512: 5ff137a7a934237fa220f1c2807ce9abeeb75929266558bf3e4045bec7dfcd0a8747fa74d700065c568330b18badf58c60c308eb13d1eed444d4bbfe6decc48b
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Feb 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test: Write tests for upgradewallet RPC

4 participants