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: update updatechanpolicy to allow zero fees #3139
Conversation
// As a sanity check, we'll ensure that the passed fee rate is below | ||
// 1e-6, or the lowest allowed fee rate, and that the passed timelock | ||
// is large enough. | ||
if req.FeeRate < minFeeRate { | ||
case req.FeeRate != 0 && req.FeeRate < minFeeRate: |
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.
comment looks out of date?
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.
kek should have been more clear that it also says "we'll ensure that the passed fee rate is below 1e-6", instead of above or equal to the minimum.
PTAL @cfromknecht |
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 🚀, one non-blocking comment
// As a sanity check, we'll ensure that the passed fee rate is below | ||
// 1e-6, or the lowest allowed fee rate, and that the passed timelock | ||
// is large enough. | ||
if req.FeeRate < minFeeRate { | ||
case req.FeeRate != 0 && req.FeeRate < minFeeRate: |
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.
kek should have been more clear that it also says "we'll ensure that the passed fee rate is below 1e-6", instead of above or equal to the minimum.
Doesn't a fee of 0, 0 break the pathfinding algo? |
@ZapUser77 nope, fees aren’t the only consideration in determining distance. That will be even more true with #2802 |
I remember running into this specific problem. The EdgeWeight can return zero if fee = zero, because INT64 is used instead of float: func edgeWeight(lockedAmt lnwire.MilliSatoshi, fee lnwire.MilliSatoshi,
} If TimelockPenalty results in number less than one, the return would be fees only... which was almost always. Though, I think that was addressed by changing: |
@alexbosworth wrote to me in LN chat that: "If you set your fees to zero programmatically you need to restart your node otherwise forwarding will break" |
Hi,
That's correct, we became aware of this issue last week. We have a fix, and
it should be implemented before our scheduled 0.8 release. When the fix is
available in master, we'll comment on this issue.
…On Mon, Aug 26, 2019, 7:23 AM LNBIG.com Project ***@***.***> wrote:
@alexbosworth <https://github.com/alexbosworth> wrote to me in LN chat
that: "If you set your fees to zero programmatically you need to restart
your node otherwise forwarding will break"
@Roasbeef <https://github.com/Roasbeef> , can you confirm or deny this? I
changed fees through gRPC API. Should i restart LND daemons after setting
zero fees in channels? And if yes, why?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3139?email_source=notifications&email_token=AAHTWLX44WIE7OJUKL4ZN2DQGPRORA5CNFSM4HQWIRRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5EQXEA#issuecomment-524880784>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAHTWLR5VGMD3I5ESVGJIBTQGPRORANCNFSM4HQWIRRA>
.
|
Hi @Roasbeef So I'd assume the fix is available in master as of now? |
@gcomte given the merge dates this looks like it shipped in 0.7 |
Fixes #3138.