wallet: show real fee_reason strings in help #36432

pull jcastros wants to merge 1 commits into bitcoin:master from jcastros:wallet-fee-reason-help changing 4 files +21 −3
  1. jcastros commented at 4:18 AM on October 4, 2026: contributor

    The verbose help for sendtoaddress and sendmany paraphrased fee_reason and left out "User Specified Fee". The strings the RPC returns are the ones in StringForFeeReason.

    Join that map for both help lines, the same way estimate_mode help is built from FeeModeMap, so the list cannot drift again.

    wallet_basic.py checks that an explicit fee_rate returns "User Specified Fee" for sendtoaddress and sendmany.

  2. wallet: show real fee_reason strings in help
    The verbose help for sendtoaddress and sendmany paraphrased
    fee_reason and left out "User Specified Fee". The strings the RPC
    returns are the ones in StringForFeeReason.
    
    Join that map for both help lines, the same way estimate_mode help
    is built from FeeModeMap, so the list cannot drift again.
    
    wallet_basic.py checks that an explicit fee_rate returns
    "User Specified Fee" for sendtoaddress and sendmany.
    781d8dbd50
  3. DrahtBot added the label Wallet on Oct 4, 2026
  4. DrahtBot commented at 4:18 AM on October 4, 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.

    Type Reviewers
    ACK maflcko, ismaelsadeeq, sedited

    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. in test/functional/wallet_basic.py:596 in 781d8dbd50
     589 | @@ -590,6 +590,11 @@ def run_test(self):
     590 |          assert_equal(txid_feeReason_one["fee_reason"], "Fallback fee")
     591 |          txid_feeReason_two = self.nodes[2].sendmany(dummy='', amounts={address: 5}, verbose=True)
     592 |          assert_equal(txid_feeReason_two["fee_reason"], "Fallback fee")
     593 | +        self.log.info("Test send* RPCs with an explicit fee_rate")
     594 | +        txid_feeReason_specified = self.nodes[2].sendtoaddress(address=address, amount=1, fee_rate=5, verbose=True)
     595 | +        assert_equal(txid_feeReason_specified["fee_reason"], "User Specified Fee")
     596 | +        txid_feeReason_specified_many = self.nodes[2].sendmany(dummy='', amounts={address: 1}, fee_rate=5, verbose=True)
    


    maflcko commented at 8:54 AM on October 4, 2026:
            txid_feeReason_specified_many = self.nodes[2].sendmany(amounts={address: 1}, fee_rate=5, verbose=True)
    

    nit: Is this dummy needed or can it be dropped?

  6. maflcko commented at 8:55 AM on October 4, 2026: member

    lgtm ACK 781d8dbd500d4f7b6577ed4b37d1d913c25052af

  7. bitcoin deleted a comment on Oct 6, 2026
  8. ismaelsadeeq approved
  9. ismaelsadeeq commented at 5:48 AM on October 7, 2026: member

    Code review ACK 781d8dbd500d4f7b6577ed4b37d1d913c25052af

    Thanks for the cleanup.

  10. sedited approved
  11. sedited commented at 7:44 AM on October 7, 2026: contributor

    ACK 781d8dbd500d4f7b6577ed4b37d1d913c25052af

  12. sedited merged this on Oct 7, 2026
  13. sedited closed this on Oct 7, 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-11 10:51 UTC

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