test: Replace stale TODO with mempoolminfee test in wallet_send.py #36705

pull Conradgabe wants to merge 1 commits into bitcoin:master from Conradgabe:test-send-fee-below-mempoolminfee changing 1 files +36 −10
  1. Conradgabe commented at 1:04 PM on October 30, 2026: none

    wallet_send.py had a commented-out TODO from the original send PR (#16378) about returning the hex when the fee rate is below the mempool minimum. The commented code was stale; estimate_mode="sat/b" no longer exists.

    Also, an explicit fee_rate is only checked against max(-mintxfee, -minrelaytxfee), not against mempoolminfee (see src/wallet/fees.cpp), so when the mempool is full, send can build a tx the node won't accept.

    This PR adds a subtest covering this cases and removes the stale TODO.

    With add_to_wallet=false, the returned hex is rejected by testmempoolaccept, and with add_to_wallet=true, send reports success, but the tx stays only in the wallet, not the mempool.

  2. DrahtBot added the label Tests on Oct 30, 2026
  3. DrahtBot commented at 1:04 PM on October 30, 2026: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

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

    <!--006a51241073e994b41acfe9ec718e94-->

    External sites

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline and AI policy for information on the review process. A summary of reviews will appear here.

    <!--5faf32d7da4f0f540f40219e4f7537a3-->

  4. fanquake commented at 3:20 PM on October 30, 2026: member

    cc @Sjors

  5. DrahtBot added the label CI failed on Oct 30, 2026
  6. DrahtBot commented at 5:57 PM on October 30, 2026: contributor

    <!--85328a0da195eb286784d51f73fa0af9-->

    🚧 At least one of the CI tasks failed. <sub>Task lint: https://github.com/bitcoin/bitcoin/actions/runs/41060222545/job/124145226184</sub> <sub>LLM reason (✨ experimental): CI failed because Python lint detected whitespace on two lines in test/functional/wallet_send.py (a whitespace-only blank line and trailing space).</sub>

    <details><summary>Hints</summary>

    Try to run the tests locally, according to the documentation. However, a CI failure may still happen due to a number of reasons, for example:

    • Possibly due to a silent merge conflict (the changes in this pull request being incompatible with the current code in the target branch). If so, make sure to rebase on the latest commit of the target branch.

    • A sanitizer issue, which can only be found by compiling with the sanitizer and running the affected test.

    • An intermittent issue.

    Leave a comment here, if you need help tracking down a confusing failure.

    </details>

  7. test: cover send fee_rate below mempoolminfee a2d32135f3
  8. Conradgabe force-pushed on Oct 31, 2026
  9. DrahtBot removed the label CI failed on Nov 5, 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-11-07 15:51 UTC

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