refactor: fuzz: remove cost_of_change from coin-grinder fuzz target #36071

pull yancyribbens wants to merge 1 commits into bitcoin:master from yancyribbens:0824-remove-cost-of-change-from-cg-fuzzer changing 1 files +0 −1
  1. yancyribbens commented at 6:32 PM on August 24, 2026: contributor

    coin-grinder selection algorithm does not take cost_of_change as a parameter.

    CoinGrinder doesn’t use coin_params.m_cost_of_change and the comparison of selection results from CoinGrinder, SRD, and Knapsack does not need it either as only the weight of the selections is relevant. So, line 96 in that fuzz test is both incorrect and dead code. It should be removed.

    cite: stackexchange

    verified coin_grinder fuzz target still works after removal

  2. refactor: fuzz: remove cost_of_change from coin-grinder fuzz target
    coin-grinder selection algorithm does not take cost_of_change as a
    parameter.
    5ec6446a1b
  3. DrahtBot added the label Refactoring on Aug 24, 2026
  4. DrahtBot commented at 6:33 PM on August 24, 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/36071.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

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

    Type Reviewers
    ACK brunoerg

    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. yancyribbens commented at 6:33 PM on August 24, 2026: contributor
  6. brunoerg approved
  7. brunoerg commented at 5:43 PM on August 25, 2026: contributor

    ACK 5ec6446a1b83e673a51d9e86fa4c0c0e9930fccc

    m_cost_of_change isn't used for anything of coin-grinder, it's a no-op in the target and it's fine to remove it.


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-04 08:51 UTC

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