Replacing fee_rate with sat_per_vbyte#2054
Conversation
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 improves the clarity of the API by renaming a fee-related field to explicitly include its unit of measurement. It also corrects the documentation to accurately describe the transaction type associated with this fee rate. Highlights
🧠 New Feature in Public Preview: You can now enable Memory 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 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 counter productive. 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 renames the 'FeeRate' field to 'FeeRateSatKw' in the 'SendAssetRequest' struct and its associated methods to improve clarity regarding the unit of measurement. The changes are applied across the codebase, including command-line assets, integration tests, and the RPC server. I have no further feedback to provide.
darioAnongba
left a comment
There was a problem hiding this comment.
Hi! Sadly this PR is not doing what is expected:
Issue #1661 explicitly requests renaming fee_rate to sat_per_vbyte to match lnd's SendCoinsRequest convention. The PR title says the same. But the actual implementation renames to fee_rate_sat_kw (sat per kiloweight)
The behaviour should be the same as FundChannelRequest (on the CLI as well).
My bad. I will fix it as soon as possible. |
ecca3fb to
e190657
Compare
6f4eaa8 to
25067b4
Compare
darioAnongba
left a comment
There was a problem hiding this comment.
We can either also do the migration for FundBatch and FinalizeBatch to use sat/vB with the same pattern or implement it in follow-up PRs.
Well, for now I will focus on your comments and later do the migration. |
25067b4 to
a26c7ce
Compare
|
Hi! Just mentioning that CI is red and branch could be rebased. |
a26c7ce to
e824b31
Compare
|
@darioAnongba: review reminder |
e824b31 to
180b2df
Compare
|
Hey, @darioAnongba, I rebased the PR to the latest main, could you please take a look |
6bd541a to
76a5042
Compare
darioAnongba
left a comment
There was a problem hiding this comment.
thanks! Very close now. Only small details.
| repeated AddressWithAmount addresses_with_amounts = 5; | ||
|
|
||
| // The optional fee rate to use for the anchor transaction, in sat/vB. | ||
| uint64 sat_per_vbyte = 8; |
There was a problem hiding this comment.
| uint64 sat_per_vbyte = 8; | |
| uint64 sat_per_vbyte = 6; |
There was a problem hiding this comment.
It looks like this specific change breaks CI tests
76a5042 to
0a2ee23
Compare
Should close #1661