Skip to content

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

Closed

Description

@maflcko

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)

Activity

  1. added this to the 33.0 milestone on Sep 28, 2026
  2. ismaelsadeeq commented on Sep 28, 2026

    @ismaelsadeeq
    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 (comment), 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

  3. maflcko commented on Sep 28, 2026

    @maflcko
    MemberAuthor

    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?

  4. ismaelsadeeq commented on Sep 28, 2026

    @ismaelsadeeq
    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.

  5. achow101 commented on Sep 28, 2026

    @achow101
    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions