fuzz: Use `LIMITED_WHILE` in `connect_block` #36253

pull marcofleon wants to merge 1 commits into bitcoin:master from marcofleon:2026/09/connectblock-limited-while changing 1 files +23 −27
  1. marcofleon commented at 4:38 PM on September 14, 2026: contributor

    Follow up to #35850 addressing #35850 (review).

    Replace the consume integral for loops in connect_block with LIMITED_WHILE. This is the preferred pattern for fuzz tests because it stops when the input runs out instead of repeating the loop body with default values.

  2. fuzz: Use LIMITED_WHILE in connect_block
    Quick followup to https://github.com/bitcoin/bitcoin/pull/35850.
    
    Replace the consume integral for loops with LIMITED_WHILE. This is
    the preferred pattern for fuzz tests because it stops when the input
    runs out instead of repeating the loop body with default values.
    
    A few other reasons are outlined in fa55385ab36c6989a8583416759612195389c1b6.
    e0229ca685
  3. DrahtBot added the label Fuzzing on Sep 14, 2026
  4. DrahtBot commented at 4:38 PM on September 14, 2026: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

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

    <!--006a51241073e994b41acfe9ec718e94-->

    Code Coverage & Benchmarks

    For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/36253.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline and AI policy for information on the review process.

    Type Reviewers
    ACK nervana21, dergoegge

    If your review is incorrectly listed, please copy-paste <code>&lt;!--meta-tag:bot-skip--&gt;</code> into the comment that the bot should ignore.

    <!--5faf32d7da4f0f540f40219e4f7537a3-->

  5. nervana21 commented at 12:24 AM on September 15, 2026: contributor

    tACK e0229ca6851572189ee99dc7093b58b01650d43b

  6. fanquake commented at 9:36 AM on September 15, 2026: member
  7. dergoegge approved
  8. dergoegge commented at 1:00 PM on September 15, 2026: member

    utACK e0229ca6851572189ee99dc7093b58b01650d43b

  9. fanquake merged this on Sep 15, 2026
  10. fanquake closed this on Sep 15, 2026


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-09-21 12:51 UTC

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