Remove deprecated fee rate option --sat_per_byte#10889
Conversation
The --sat_per_byte flag was hidden and deprecated in v0.13.0 in favor of --sat_per_vbyte. Remove it from the sendcoins, sendmany, openchannel, closechannel, closeallchannels, bumpfee, bumpclosefee and bumpforceclosefee commands, and simplify the fee-rate flag validation accordingly.
🔴 PR Severity: CRITICAL
🔴 Critical (1 file)
🟠 High (2 files)
🟡 Medium (3 files)
🟢 Low / Excluded (4 files)
AnalysisThis PR touches Severity bump rules were checked:
The CRITICAL classification stands based on the presence of To override, add a |
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request finalizes the removal of the deprecated sat_per_byte field, which has been superseded by sat_per_vbyte. By enforcing this change at the RPC and CLI layers, the codebase is simplified and technical debt is reduced. The implementation ensures that any legacy usage is now explicitly rejected, maintaining consistency across the API. Highlights
New Features🧠 You can now enable Memory (public preview) to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request removes the deprecated --sat_per_byte fee rate option across multiple CLI commands and RPCs (including CloseChannel, OpenChannel, SendCoins, SendMany, and BumpFee) in favor of sat_per_vbyte. It also updates the corresponding tests and release notes. The review feedback identifies a broken markdown link in the release notes that needs to be corrected.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
The sat_per_byte field was deprecated in v0.13.0 in favor of sat_per_vbyte. Until now the server silently treated sat_per_byte as sat/vbyte, which was misleading. Rather than honoring it, the affected RPCs (SendCoins, SendMany, OpenChannel, OpenChannelSync, CloseChannel and walletrpc.BumpFee) now return an explicit error when the field is set, so that an old client talking to a new daemon fails loudly instead of having its requested fee rate silently dropped. CalculateFeeRate and maybeUseDefaultConf are simplified to only take the sat_per_vbyte value now that the deprecated field is no longer honored.
The wallet import test set the deprecated SatPerByte field on SendCoinsRequest, which the server now rejects. Switch it to SatPerVbyte, which carries the same sat/vbyte value.
3ee7637 to
ff14956
Compare
ff14956 to
0207a05
Compare
As defined at release doc v0.21.0 we now remove the option --sat_per_byte.
Change Description
The sat_per_byte field was deprecated back in v0.13.0 in favor of sat_per_vbyte. This PR completes its removal: the deprecated field is no longer honored by the RPC server, the CLI, or the wallet RPC, and any request that still sets it is now explicitly rejected.
Behavior change
Previously, sat_per_byte was still accepted and silently converted, with a guard preventing both fields from being set at once.
Now, if a request sets sat_per_byte the
ErrSatPerByteRemovedis returned.