Intermittent CI failure in wallet_send.py, in `test_maxfeerate` #36363

issue maflcko opened this issue on September 28, 2026
  1. maflcko commented at 6:33 AM on September 28, 2026: member

    The CI failure in "Windows, test cross-built" looks unrelated to this PR: https://github.com/bitcoin/bitcoin/actions/runs/36297704387/job/108561658571

    The only failing test is wallet_send.py, in test_maxfeerate (added in #29278):

    File "wallet_send.py", line 225, in test_maxfeerate
        self.nodes[0].sendtoaddress(self.nodes[0].getnewaddress(), amount=1, fee_rate=Decimal("1.009"))
    test_framework.util.JSONRPCException: Fee rate exceeds maximum configured by user (maxfeerate) (-6)
    

    Originally posted by @azuchi in #36355 (comment)

  2. maflcko added the label Wallet on Sep 28, 2026
  3. maflcko added the label CI failed on Sep 28, 2026
  4. maflcko added this to the milestone 33.0 on Sep 28, 2026
  5. ismaelsadeeq commented at 8:48 AM on September 28, 2026: member

    Thanks for reporting. By reading the logs, it seems a fee rate of 1.009 was passed as the -maxfeerate for the wallet, and then we attempted to submit a tx with the exact 1.009 fee rate. The check is that any fee rate above that should be rejected for creation and submission. It seems somehow the transaction ended up with a fee rate higher than what was intended, and the wallet rightfully rejects it.

    My suspect is #29278 (review), because this test on the boundary, and since the wallet may falsely reject, this occur.

    A simple fix would be to not test at the boundary, but that just hides the issue.

    cc @polespinasa @furszy

  6. maflcko commented at 9:07 AM on September 28, 2026: member

    I haven't looked at this, but the option would mostly be useful to serve as a belt-and-suspender, not as an option to somehow set an exact fee. So I think overshooting by a small margin is fine?

  7. ismaelsadeeq commented at 9:11 AM on September 28, 2026: member

    I haven't looked at this, but the option would mostly be useful to serve as a belt-and-suspender, not as an option to somehow set an exact fee. So I think overshooting by a small margin is fine?

    Yes, I will await a few more eyes before opening a fix.

  8. achow101 commented at 7:45 PM on September 28, 2026: member

    The failure is due to a slightly smaller ECDSA signature which results in a tx size smaller than estimated, which increases the actual fee rate.

    A very quick fix is to make the test use taproot inputs.

  9. achow101 closed this on Sep 29, 2026

  10. pull[bot] referenced this in commit ba8fdb9717 on Sep 29, 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-10-18 10:51 UTC

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