test: Use feerate higher than minrelay fee in wallet_fundraw #28604

pull achow101 wants to merge 1 commits into bitcoin:master from achow101:fix-fundraw-test-intermittent changing 1 files +6 −6
  1. achow101 commented at 11:23 PM on October 5, 2023: member

    The external input weight test in wallet_fundrawtransaction.py made transactions at the minimum relay fee. However due to ECDSA sometimes making a shorter signature than expected, the size estimate (and therefore the funded fee) ends up being a little bit too low, which results in the final transaction being under the min relay fee. We can compensate for this by just using a feerate higher than the minrelayfee as the actual feerate itself does not matter in this test.

    Fixes #28437

  2. test: Use feerate higher than minrelay fee in wallet_fundraw
    The external input weight test in wallet_fundrawtransaction.py made
    transactions at the minimum relay fee. However due to ECDSA sometimes
    making a shorter signature than expected, the size estimate (and
    therefore the funded fee) ends up being a little bit too low, which
    results in the final transaction being under the min relay fee. We can
    compensate for this by just using a feerate higher than the minrelayfee
    as the actual feerate itself does not matter in this test.
    05af4dfa50
  3. DrahtBot commented at 11:23 PM on October 5, 2023: 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 glozow

    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 Oct 5, 2023
  5. achow101 added this to the milestone 26.0 on Oct 5, 2023
  6. glozow commented at 4:17 PM on October 8, 2023: member

    utACK 05af4dfa50c229c8533d9a71e046c9387e1cdb27, seems right to me

  7. fanquake merged this on Oct 9, 2023
  8. fanquake closed this on Oct 9, 2023

  9. Frank-GER referenced this in commit 04471f0b03 on Oct 13, 2023
  10. bitcoin locked this on Oct 8, 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-14 21:13 UTC

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