assume_utxo
tests and I found that the scenario of trying to activate a snapshot twice is not covered. This test is to ensure failure when loading a snapshot if there is already a snapshot-based chainstate.
test: Assumeutxo: ensure failure when importing a snapshot twice #29973
pull alfonsoromanz wants to merge 1 commits into bitcoin:master from alfonsoromanz:assumeutxo-test-import-snapshot-twice changing 1 files +4 −0-
alfonsoromanz commented at 1:34 pm on April 26, 2024: contributorI am getting familiar with the
-
DrahtBot commented at 1:34 pm on April 26, 2024: contributor
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Code Coverage
For detailed information about the code coverage, see the test coverage report.
Reviews
See the guideline for information on the review process.
Type Reviewers ACK fjahr, rkrux, kevkevinpal, achow101 If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
-
fjahr commented at 1:47 pm on April 26, 2024: contributor
0test/functional/feature_assumeutxo.py:401:1: W293 blank line contains whitespace 1^---- failure generated from lint-python.py
-
fjahr commented at 1:47 pm on April 26, 2024: contributorConcept ACK
-
[Test] Assumeutxo: ensure failure when importing a snapshot twice b259b0e8d3
-
alfonsoromanz force-pushed on Apr 26, 2024
-
DrahtBot commented at 1:51 pm on April 26, 2024: contributor
🚧 At least one of the CI tasks failed. Make sure to run all tests locally, according to the documentation.
Possibly this is 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.
Leave a comment here, if you need help tracking down a confusing failure.
-
DrahtBot added the label CI failed on Apr 26, 2024
-
alfonsoromanz commented at 1:54 pm on April 26, 2024: contributor
0test/functional/feature_assumeutxo.py:401:1: W293 blank line contains whitespace 1^---- failure generated from lint-python.py
Thanks @fjahr. I just fixed the linting issue.
-
fjahr commented at 2:36 pm on April 26, 2024: contributorCode review ACK b259b0e8d360726b062c4b0453d1cf5a68e1933f
-
alfonsoromanz renamed this:
[Test] Assumeutxo: ensure failure when importing a snapshot twice
test: Assumeutxo: ensure failure when importing a snapshot twice
on Apr 26, 2024 -
DrahtBot removed the label CI failed on Apr 26, 2024
-
DrahtBot added the label Tests on Apr 26, 2024
-
in test/functional/feature_assumeutxo.py:398 in b259b0e8d3
394@@ -395,6 +395,10 @@ def check_tx_counts(final: bool) -> None: 395 assert_equal(snapshot['snapshot_blockhash'], dump_output['base_hash']) 396 assert_equal(snapshot['validated'], False) 397 398+ self.log.info("Check that loading the snapshot again will fail because there is already an active snapshot.")
rkrux commented at 2:55 pm on May 8, 2024:I also tested with putting this block before the above for loop, and the tests passes. I wanted to see what would happen if we load another snapshot right after loading one.rkrux approvedkevkevinpal commented at 12:14 pm on May 9, 2024: contributortACK b259b0e
made a similar PR not knowing this existed https://github.com/bitcoin/bitcoin/pull/30068
achow101 commented at 3:48 pm on May 9, 2024: memberACK b259b0e8d360726b062c4b0453d1cf5a68e1933fachow101 merged this on May 9, 2024achow101 closed this on May 9, 2024
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-21 18:12 UTC
More mirrored repositories can be found on mirror.b10c.me