-
Notifications
You must be signed in to change notification settings - Fork 376
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
Add API to change HTLC relay parameters #216
Comments
Confused about how htlc_minimum_msat is described in BOLT but came up with a theory. Could you guys please check on this? In the Requirement section for channel_update in BOLT7,
The final seems to be defined as the final recipient of the message. So the above condition sounds strange. Perhaps 'the minimum HTLC value in the peer(the other end of the channel) node'? In BOLT4,
and
Then the HTLC amount here must mean amt_to_forward in the onion packet(while still reporting the incoming amount). Since there is no message to notify the changes of their own htlc_mimimum_msat between peers, 'htlc_mimimum_msat' is fixed after the initial announcement in open/accept, so we don't need API to change it. And, so is fixed the htlc_minimum_msat field in channel_update. |
Seems to agree with you doesn't make sense as final node isn't known by origin node at channel_update build-time, it's a broadcast all if I get it right. So htlc_minimum_msat seems currently static in channel_update but in the future maybe nodes'll be able to renegotiate this parameter if they want to respond to a channel capacity increase.. |
re: htlc_minimum_msat - indeed, the spec is confusing (and wrong). re: ChannelUpdate firing - indeed, we should have an API to change things such as fee_proportional_millionths which would, by side effect, generate channel_updates. Don't think we really want a channel_update-generation API specifically because those should only be sent when there is an actual update. |
Tagging this good-first-issue, at least for the fee-update parts - having an api to change |
Tagging 0.1 cause apparently we have some users who want this sooner rather than later. |
Working on this. |
I wonder we need user-facing API to update relay parameter for
htlc_minimum_msatand fire channel_update message (if there is actual update). (related to #169?)
While writing test code for #157, I found that it'd be much easier (and more realistic) to actually change channel config to simulate error condition.
The text was updated successfully, but these errors were encountered: