doc: Assert that assumed-valid blocks are not fully valid in CheckBlockIndex() #29355

pull maflcko wants to merge 1 commits into bitcoin:master from maflcko:2401-doc-au-fully-valid- changing 2 files +7 −1
  1. maflcko commented at 1:22 PM on January 31, 2024: member

    It does not make sense for a block to be fully-valid and assumed-valid at the same time.

    Check it in CheckBlockIndex() and fix the tests that violate this assumption.

  2. doc: Assert that assumed-valid blocks are not fully valid in CheckBlockIndex() fa027e08f7
  3. DrahtBot commented at 1:22 PM on January 31, 2024: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

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

    <!--006a51241073e994b41acfe9ec718e94-->

    Code Coverage

    For detailed information about the code coverage, see the test coverage report.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK fjahr, ryanofsky
    Concept ACK delta1, epiccurious

    If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #29370 (assumeutxo: Get rid of faked nTx and nChainTx values by ryanofsky)

    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.

  4. DrahtBot added the label Docs on Jan 31, 2024
  5. delta1 commented at 10:18 AM on February 2, 2024: none

    Concept ACK fa027e08f7be63c201f42d0e06160d2273b4a6dd

  6. epiccurious commented at 2:08 AM on February 11, 2024: contributor

    Concept ACK fa027e08f7be63c201f42d0e06160d2273b4a6dd.

  7. fjahr commented at 10:44 PM on February 19, 2024: contributor

    Seems reasonable, code review ACK fa027e08f7be63c201f42d0e06160d2273b4a6dd

    Not sure why this is marked as a "doc" change though.

  8. delta1 commented at 4:43 AM on February 20, 2024: none

    @fjahr i think drahtbot added that label because the commit starts with “doc:”

  9. fjahr commented at 12:35 PM on February 20, 2024: contributor

    @fjahr i think drahtbot added that label because the commit starts with “doc:”

    Yes, my question is why the "doc" is there in the commit desciption

  10. ryanofsky approved
  11. ryanofsky commented at 4:43 PM on February 21, 2024: contributor

    Code review ACK fa027e08f7be63c201f42d0e06160d2273b4a6dd. This change makes sense and is an improvement over the status quo. I think it could be considered it a "doc" change since it is just adding an assert, which is a form of documentation, and not changing actual code. Not sure if that is how "doc" has been used other places, though.

    This PR is a little redundant with #29370, which drops the BLOCK_ASSUMED_VALID flag entirely, so there is no way it could conflict with BLOCK_VALID_SCRIPTS. But it makes sense to check for conflicting flags as long as both flags exist.

  12. maflcko commented at 4:47 PM on February 21, 2024: member

    This PR is a little redundant with #29370, which drops the BLOCK_ASSUMED_VALID flag entirely, so there is no way it could conflict with BLOCK_VALID_SCRIPTS. But it makes sense to check for conflicting flags as long as both flags exist.

    Yeah, makes sense. I forgot to close this pull when the other was opened.

  13. maflcko closed this on Feb 21, 2024

  14. maflcko deleted the branch on Feb 21, 2024
  15. bitcoin locked this on Feb 20, 2025

github-metadata-mirror

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: 2026-04-22 18:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me