-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Fees: add fractional sat/vB support (lncli) and sats_per_kw (RPC) #10067
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
base: master
Are you sure you want to change the base?
Changes from all commits
40358a2
0573778
676d2bc
9cf302d
2d6396e
dc7ee7f
1ccc89f
aa73d97
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -143,6 +143,11 @@ circuit. The indices are only available for forwarding events saved after v0.20. | |||||||||||||||||||||
a whole. This new config prevents a single misbehaving peer from using up all | ||||||||||||||||||||||
the bandwidth. | ||||||||||||||||||||||
|
||||||||||||||||||||||
* [Add sat_per_kw option for more fine granular control of transaction | ||||||||||||||||||||||
fees](https://github.com/lightningnetwork/lnd/pull/10067). This option is added for the sendcoins, sendmany, openchannel, batchopenchannel, | ||||||||||||||||||||||
closechannel, closeallchannels and wallet bumpfee commands. Also add | ||||||||||||||||||||||
max_fee_per_kw for closechannel command. | ||||||||||||||||||||||
|
||||||||||||||||||||||
## lncli Additions | ||||||||||||||||||||||
|
||||||||||||||||||||||
* [`lncli sendpayment` and `lncli queryroutes` now support the | ||||||||||||||||||||||
|
@@ -154,6 +159,11 @@ circuit. The indices are only available for forwarding events saved after v0.20. | |||||||||||||||||||||
[`--incoming_chan_ids` and `--outgoing_chan_ids`](https://github.com/lightningnetwork/lnd/pull/9356). | ||||||||||||||||||||||
These filters allows to query forwarding events for specific channels. | ||||||||||||||||||||||
|
||||||||||||||||||||||
* The [--sat_per_vbyte](https://github.com/lightningnetwork/lnd/pull/10067) | ||||||||||||||||||||||
option now supports fractional values (e.g. 1.05). | ||||||||||||||||||||||
This option is added for the sendcoins, sendmany, openchannel, | ||||||||||||||||||||||
batchopenchannel, closechannel, closeallchannels and wallet bumpfee commands. The max_fee_rate argument for closechannel also supports fractional values. | ||||||||||||||||||||||
|
||||||||||||||||||||||
# Improvements | ||||||||||||||||||||||
## Functional Updates | ||||||||||||||||||||||
|
||||||||||||||||||||||
|
@@ -256,6 +266,10 @@ reader of a payment request. | |||||||||||||||||||||
v0.21.0. The `--tor.v2` configuration option is now | ||||||||||||||||||||||
[hidden](https://github.com/lightningnetwork/lnd/pull/10254). | ||||||||||||||||||||||
|
||||||||||||||||||||||
### ⚠️ **Warning:** The deprecated fee rate option --sat_per_byte will be removed in release version **0.21** | ||||||||||||||||||||||
|
||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. now needs to be 0.22 since this PR will only be part of 21 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok. I'll wait the final decision about deprecated field to change it. If there is any chance to review the inclusion of this PR in the 0.20!? If we include the changes to the lnd/lnwallet/chainfee/rates.go Lines 11 to 20 in 90c96c7
|
||||||||||||||||||||||
The following RPCs will be impacted: sendcoins, sendmany, openchannel, closechannel, closeallchannels and wallet bumpfee. | ||||||||||||||||||||||
|
||||||||||||||||||||||
# Technical and Architectural Updates | ||||||||||||||||||||||
## BOLT Spec Updates | ||||||||||||||||||||||
|
||||||||||||||||||||||
|
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.
why do we introduce a new lib here ? given that float64 have a precision of 15 bits, we should just use the built in method of parsing float, since we do later on just grep the integer part of the number anyways ?
Uh oh!
There was an error while loading. Please reload this page.
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.
@starius proposed using decimal to avoid rounding errors with float arithmetic.
I hadn’t considered the weight of adding a new dependency — to avoid that, we might keep the float64 arithmetic with explicit rounding up.
What you both think about it?