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: Assumeutxo: import snapshot in a node with a divergent chain #29996
base: master
Are you sure you want to change the base?
Conversation
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code CoverageFor detailed information about the code coverage, see the test coverage report. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
4c07a79
to
af0f401
Compare
I splitted the original commit into two commits (one for each test). The second test (af0f401) may be redundant with this one: #29428. The only difference is that my test is executed on a node that has a divergent chain after block 199. I did that to cover this scenario described in the comments
If it's redundant I can delete the second commit. Thoughts? |
Concept ACK, covers more tests scenarios for AssumeUTXO |
af0f401
to
ce80f7e
Compare
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.
tACK ce80f7e
Make and tests successful, thanks for adding this test - it's easy to follow through.
ce80f7e
to
3f03354
Compare
Rebased. I also addressed some feedback from rkrux's comments: changed hardcoded value of |
IMO you should not delete the second commit, both tests verify that the snapshot load fails but under different scenarios |
This PR adds tests to cover two scenarios of loading a snapshot when the current chain tip is:
In the second scenario, the snapshot block does not belong to the most-work chain anymore so I believe it covers this scenario too:
TODO: Valid snapshot file and snapshot block, but the block is not on the most-work chain
. Therefore I deleted that TODO as well.