-
Notifications
You must be signed in to change notification settings - Fork 421
Allow to override config defaults for inbound channels on a per-channel basis #3596
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
Allow to override config defaults for inbound channels on a per-channel basis #3596
Conversation
7caaca3 to
645f146
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3596 +/- ##
==========================================
- Coverage 88.66% 88.64% -0.02%
==========================================
Files 149 149
Lines 116893 116953 +60
Branches 116893 116953 +60
==========================================
+ Hits 103640 103671 +31
- Misses 10753 10774 +21
- Partials 2500 2508 +8 ☔ View full report in Codecov by Sentry. |
400369e to
5634e6c
Compare
TheBlueMatt
left a comment
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.
Thanks!
5014400 to
7d18b65
Compare
7d18b65 to
f8eb6b9
Compare
d43f192 to
fb67798
Compare
TheBlueMatt
left a comment
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.
Otherwise LGTM
19171a0 to
3a2b885
Compare
| let channel_update = get_event_msg!(nodes[1], MessageSendEvent::SendChannelUpdate, nodes[0].node.get_our_node_id()); | ||
| assert_eq!(channel_update.contents.fee_base_msat, 555); | ||
|
|
||
| get_event_msg!(nodes[0], MessageSendEvent::SendChannelUpdate, nodes[1].node.get_our_node_id()); |
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 removed the force close steps that were present previously. Seems this is enough testing for manual acceptance?
3a2b885 to
c088dcd
Compare
|
Made the argument on the public api |
|
|
||
| let as_channel_ready = get_event_msg!(nodes[1], MessageSendEvent::SendChannelReady, nodes[0].node.get_our_node_id()); | ||
| nodes[1].node.handle_channel_ready(nodes[0].node.get_our_node_id(), &as_channel_ready); | ||
| let as_channel_ready = get_event_msg!(nodes[0], MessageSendEvent::SendChannelReady, nodes[1].node.get_our_node_id()); |
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.
Needed to extend the test to include channel ready in order to verify the channel update message.
c088dcd to
1be72f2
Compare
Extends partial channel updates to optionally include the accept_underpaying_htlcs flag.
6edfd23 to
b34967a
Compare
This commit introduces a config override struct parameter to the accept_inbound_channel methods. With manual channel acceptance enabled, users can modify the default configuration as needed.
b34967a to
02861dd
Compare
TheBlueMatt
left a comment
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.
Thanks! This is straightforward and reasonably well tested, so just gonna land this.
tnull
left a comment
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, post-merge ACK
Fixes #2914