mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 12:17:38 +00:00
wallet: show real fee_reason strings in help #36432
No reviewers
Labels
No labels
Android
Backport
Block storage
Brainstorming
Bug
Build system
CI failed
Consensus
Data corruption
Descriptors
Docs
DrahtBot Guix build requested
Feature
Fuzzing
GUI
Good First Review
IPC
Insufficient Review
Kernel
Linux/Unix
Mempool
Mining
Needs Backport (31.x)
Needs Backport (32.x)
Needs Benchmark
Needs Conceptual Review
Needs backport (30.x)
Needs rebase
Needs release note
Net
P2P
PSBT
Privacy
Private Broadcast
Questions and Help
RPC/REST/ZMQ
Refactoring
Resource usage
Review club
Scripts and tools
Settings
TX fees and policy
Tests
Tracking Issue
UTXO Db and Indexes
Up for grabs
Upstream
Utils/log/libs
Validation
Waiting for author
Wallet
Windows
good first issue
interfaces
macOS
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin/bitcoin!36432
Loading…
Reference in a new issue
No description provided.
Delete branch "wallet-fee-reason-help"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
External sites
Reviews
See the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste
<!--meta-tag:bot-skip-->into the comment that the bot should ignore.Base:
66776840beb558f7e84451c2c55457f0e06242f0Head:
781d8dbd500d4f7b6577ed4b37d1d913c25052af💡 Suggestion
Assert the fee-reason help text (src/wallet/rpc/spend.cpp:276, head)
The new
wallet_basic.pyassertions check returnedfee_reasonvalues, but they would still pass if this help description reverted to an incomplete paraphrase.rpc_help.pygenerates and writes help output without asserting its contents. Add help-output assertions for bothsendtoaddressandsendmanythat check the advertised fee-reason list, including at least “User Specified Fee.”Review coverage was incomplete. The adversarial_glm review did not complete.
Full review report
lgtm ACK
781d8dbd50nit: Is this dummy needed or can it be dropped?
Nice back
Code review ACK
781d8dbd50Thanks for the cleanup.
ACK
781d8dbd50