test: Fix CPartialMerkleTree.nTransactions signedness #29363

pull maflcko wants to merge 1 commits into bitcoin:master from maflcko:2402-test-fix-sign- changing 1 files +2 −2
  1. maflcko commented at 12:23 pm on February 1, 2024: member

    It is unsigned in Bitcoin Core, so the tests should match it:

    https://github.com/bitcoin/bitcoin/blob/aa9231fafe45513134ec8953a217cda07446fae8/src/merkleblock.h#L59

    Large positive values, or “negative” values, are rejected anyway, but it still seems fine to fix this.

    The bug was introduced when the code was written in d280617bf569f84457eaea546541dc74c67cd1e4.

    (Lowercase i means signed, see https://docs.python.org/3/library/struct.html#format-characters)

  2. test: Fix CPartialMerkleTree.nTransactions signedness facafa90f7
  3. DrahtBot commented at 12:23 pm on February 1, 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 theStack, Empact
    Concept ACK epiccurious

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

  4. DrahtBot added the label Tests on Feb 1, 2024
  5. epiccurious commented at 2:25 pm on February 1, 2024: none
    utACK
  6. Empact commented at 5:14 pm on February 2, 2024: member
    ACK
  7. theStack approved
  8. theStack commented at 5:57 pm on February 6, 2024: contributor
    LGTM ACK facafa90f7a1eee452f9baf8a1b65a2edac0982b
  9. DrahtBot requested review from Empact on Feb 6, 2024
  10. Empact approved
  11. DrahtBot requested review from Empact on Feb 6, 2024
  12. Empact approved
  13. Empact commented at 6:23 pm on February 6, 2024: member
    ACK facafa90f7a1eee452f9baf8a1b65a2edac0982b
  14. maflcko commented at 10:45 am on February 7, 2024: member
    rfm?
  15. epiccurious approved
  16. DrahtBot requested review from epiccurious on Feb 7, 2024
  17. fanquake merged this on Feb 7, 2024
  18. fanquake closed this on Feb 7, 2024

  19. maflcko deleted the branch on Feb 7, 2024

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: 2024-07-03 07:12 UTC

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