-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rpc: add default conf target back #8693
rpc: add default conf target back #8693
Conversation
Important Auto Review SkippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
`SatPerVbyte` and `TargetConf`, and a default conf target of 6 will be used. | ||
This will [no longer be | ||
allowed](https://github.com/lightningnetwork/lnd/pull/8422) in the next | ||
release (v0.19.0) and the caller must specify either `SatPerVbyte` or |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @saubyk do you think it's feasible to enforce this in the next release, or should we wait even longer, say 0.20.0?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that we realized the impact at a later stage in the game, here's my recommendation:
- Deprecate the rpcs in 0.19 and publish a new set of rpcs (v2/v3) which would require user to specify the fee rate
- remove the deprecated rpcs in 0.20 forcing the users to move to the new rpcs
- EDIT: Also gives enough time to apps/wallets to update their interfaces
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think adding a new set of RPC endpoints because of one field is an overkill. Normally we'd add a deprecated flag to the existing field.
Itests are unhappy
|
// Keep the old behavior prior to 0.18.0 - when the user | ||
// doesn't set fee rate or conf target, the default conf target | ||
// of 6 is used. | ||
targetConf := maybeUseDefaultConf( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we should just push this logic into CalculateFeeRate
? Then we just need to remember to use that function, instead of sprinkling this additional function call everywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah initially did that then realized there's no logging in that package so took the easy path😂 let me know if you wanna enable logging in lnrpc
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh lol, yeah np to add logging here IMO.
1eef45d
to
0b7564d
Compare
0b7564d
to
db52e7e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🦚
The itest has been reverted to test the default behavior.