-
Notifications
You must be signed in to change notification settings - Fork 386
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
Small tweaks post #633/#684 #690
Small tweaks post #633/#684 #690
Conversation
Codecov Report
@@ Coverage Diff @@
## main #690 +/- ##
=======================================
Coverage 91.96% 91.96%
=======================================
Files 35 36 +1
Lines 20154 20161 +7
=======================================
+ Hits 18534 18541 +7
Misses 1620 1620
Continue to review full report at Codecov.
|
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.
Code Review ACK 3a025cb
lightning/src/ln/chan_utils.rs
Outdated
/// a broadcaster's commitment transactions. This key is static across every commitment | ||
/// transaction. | ||
/// The public key on which the non-broadcaster (ie the countersignatory) receives an immediately | ||
/// spendable primary channel balance. This key is static across every commitment transaction. |
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.
Is broadcaster's commitment transaction
clearer ?
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.
Its a little wordy now, but at least no one is going to confuse it...better?
2c2724a
to
8407ae6
Compare
Further updated bindings to include #683. |
They all have a specific structure, so having them in the mess that is functional_tests isn't really conducive to readability. More importantly, functional_tests is so big it slows down compilation, so even dropping a few hundred lines is a win.
* Channel::get_counterparty_htlc_minimum_msat() returned holder_htlc_minimum_msat, which was obviously incorrect. * ChannelManager::get_channel_update set htlc_minimum_msat to Channel::get_holder_htlc_minimum_msat(), but the spec explicitly states we "MUST set htlc_minimum_msat to the minimum HTLC value (in millisatoshi) that the channel peer will accept." This makes sense because the reason we're rejecting the HTLC is because our counterparty's HTLC minimum value is too small for us to send to them, our own HTLC minimum value plays no role. Further, our router already expects this - looking at the same directional channel info as it does fees. Finally, we add a test in the existing onion router test cases which fails if either of the above is incorrect (the second issue discovered in the process of writing the test).
8407ae6
to
0f6b000
Compare
Chatted a bit with @ariard about this one on IRC. |
This fixes one bug that was noticed in review #633 (see #680 (comment) / #633 (comment)), updates the bindings for both 633 and 684, and tweaks one comment from 633.