test: remove duplicate `WITNESS_SCALE_FACTOR` constant definition #30029

pull ismaelsadeeq wants to merge 1 commits into bitcoin:master from ismaelsadeeq:05-2024-remove-duplicate-defination changing 2 files +2 −2
  1. ismaelsadeeq commented at 9:36 AM on May 3, 2024: member

    Notice this while working on #29523

    • blocktools.py and messages.py both define WITNESS_SCALE_FACTOR constant

    https://github.com/bitcoin/bitcoin/blob/99d7538cdb2a0ab7a7a2116cd5f33b95fc52b00e/test/functional/test_framework/blocktools.py#L48

    https://github.com/bitcoin/bitcoin/blob/99d7538cdb2a0ab7a7a2116cd5f33b95fc52b00e/test/functional/test_framework/messages.py#L68

    • This PR deletes the one in blocktools.py and update the tests to only use WITNESS_SCALE_FACTOR from messages.py
  2. [test]: remove duplicate WITNESS_SCALE_FACTOR af3c18169a
  3. DrahtBot commented at 9:36 AM on May 3, 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 maflcko, glozow, brunoerg, willcl-ark, sipa, achow101

    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 May 3, 2024
  5. maflcko commented at 9:44 AM on May 3, 2024: member

    ACK af3c18169a075222fe0795ab24b8b20ad5e30ae4

  6. glozow commented at 10:24 AM on May 3, 2024: member

    lgtm ACK af3c18169a075222fe0795ab24b8b20ad5e30ae4

  7. brunoerg approved
  8. brunoerg commented at 12:07 PM on May 3, 2024: contributor

    ACK af3c18169a075222fe0795ab24b8b20ad5e30ae4

  9. willcl-ark approved
  10. willcl-ark commented at 3:19 PM on May 3, 2024: member

    ACK af3c18169a075222fe0795ab24b8b20ad5e30ae4

  11. sipa commented at 3:31 PM on May 3, 2024: member

    ACK af3c18169a075222fe0795ab24b8b20ad5e30ae4

  12. vostrnad commented at 4:10 PM on May 3, 2024: none

    nit: typo in PR name (defination -> definition)

  13. ismaelsadeeq renamed this:
    test: remove duplicate `WITNESS_SCALE_FACTOR` constant defination
    test: remove duplicate `WITNESS_SCALE_FACTOR` constant definition
    on May 3, 2024
  14. achow101 commented at 4:35 PM on May 3, 2024: member

    ACK af3c18169a075222fe0795ab24b8b20ad5e30ae4

  15. achow101 merged this on May 3, 2024
  16. achow101 closed this on May 3, 2024

  17. ismaelsadeeq deleted the branch on Jun 27, 2024
  18. bitcoin locked this on Jun 27, 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-15 09:13 UTC

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