test: Replace 0xC0 constant #27143

pull roconnor-blockstream wants to merge 1 commits into bitcoin:master from roconnor-blockstream:patch-2 changing 1 files +11 −7
  1. roconnor-blockstream commented at 2:06 PM on February 22, 2023: contributor

    Instead it should be the named constant LEAF_VERSION_TAPSCRIPT.

  2. DrahtBot commented at 2:07 PM on February 22, 2023: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

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

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK instagibbs, theStack

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

  3. DrahtBot added the label Tests on Feb 22, 2023
  4. instagibbs commented at 2:16 PM on February 22, 2023: member

    Since we're already here, we could replace the rest of the instances of this variable too?

  5. roconnor-blockstream commented at 2:19 PM on February 22, 2023: contributor

    I am not aware of other instances.

  6. instagibbs commented at 2:41 PM on February 22, 2023: member
  7. roconnor-blockstream commented at 2:55 PM on February 22, 2023: contributor

    lol I'm embarrassed to say, I was only looking at Elements code.

  8. roconnor-blockstream force-pushed on Feb 22, 2023
  9. test: Replace 0xC0 constant
    Instead it should be the named constant `LEAF_VERSION_TAPSCRIPT`.
    c3b4b5a142
  10. roconnor-blockstream force-pushed on Feb 22, 2023
  11. roconnor-blockstream commented at 3:29 PM on February 22, 2023: contributor

    Updated. I've left VALID_LEAF_VERS alone because, logically speaking, the definition of the valid tapleaf versions (defined in BIP-341) is independent of the choice of which tapleaf version to assign to tapscript (defined in BIP-342).

  12. theStack approved
  13. theStack commented at 5:50 PM on February 22, 2023: contributor

    ACK c3b4b5a142b204ceeca4e9b1ca1e2ff41ddd1308

  14. fanquake merged this on Feb 22, 2023
  15. fanquake closed this on Feb 22, 2023

  16. roconnor-blockstream deleted the branch on Feb 22, 2023
  17. sidhujag referenced this in commit 57031c1ecb on Feb 25, 2023
  18. bitcoin locked this on Feb 22, 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: 2026-04-19 15:13 UTC

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