rpc: update updatechanpolicy to allow zero fees#3139
Conversation
There was a problem hiding this comment.
comment looks out of date?
There was a problem hiding this comment.
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 |
cfromknecht
left a comment
There was a problem hiding this comment.
LGTM 🚀, one non-blocking comment
There was a problem hiding this comment.
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.