Uh oh!
There was an error while loading. Please reload this page.
Dual funding extension: begin_interactive_funding_tx_construction - #3443
Conversation
dunxen
commented
Dec 5, 2024
|
4f7e41b to
0448cf9Compareoptout21
commented
Dec 6, 2024
Did the following:
|
0448cf9 to
0e47819CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
48e0518 to
9e44d2bCompareUh oh!
There was an error while loading. Please reload this page.
9e44d2b to
b7e7a34CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
70fde13 to
b1ae668Compareoptout21
commented
Dec 11, 2024
Review comments addressed, all resolved from my side (left a few open for visibility) |
b1ae668 to
86f9680Compare86f9680 to
a379f1dCompareCodecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@## main #3443 +/- ##
==========================================
+ Coverage 89.26% 90.43% +1.16%
==========================================
Files 155 155 Lines 119968 130672 +10704 Branches 119968 130672 +10704 ==========================================
+ Hits 107092 118174 +11082 + Misses 10265 9924 -341 + Partials 2611 2574 -37 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
a379f1d to
9256a47Compare9256a47 to
5194458Compareoptout21
commented
Jan 6, 2025
Rebased. |
d40e961 to
07c805cCompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
optout21
commented
Mar 24, 2025
Picked up this again, review comments addressed. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
optout21
commented
Mar 26, 2025
Changes in reaction to comments, most notably:
|
981086f to
9328962Compare
jkczyz
left a comment
There was a problem hiding this comment.
Mostly nits. Just need to resolve https://github.com/lightningdevkit/rust-lightning/pull/3443/files#r2010721946.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
jkczyz
left a comment
There was a problem hiding this comment.
I'm good with this now. Should squash into three commits, IMO.
- main change
- removal of
SharedControlFullyOwned - bug fix
Uh oh!
There was an error while loading. Please reload this page.
Squashed. Kept the |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
wpaulino
commented
Apr 1, 2025
LGTM after squash |
optout21
commented
Apr 2, 2025
Squashed (fix commit into the first one, kept 2nd separate) |
Uh oh!
There was an error while loading. Please reload this page.
This method is needed by both V2 channel open and splicing. Auxiliary changes: - New method `calculate_change_output_value()` for determining if a change output is needed, and with what value. - In `interactivetxs.rs` adjust the visibility of `SharedOwnedOutput` and `OutputOwned` structs (were not used before). - In `DualFundingChannelContext` add a new field for the counterparty contribution, `their_funding_satoshis`.
The Shared option can cover it as well.

Add these two methods to the current dual funding implementation:
begin_interactive_funding_tx_construction()calculate_change_output_value()These changes are in the pipeline for dual funding implementation, and needed for dual funding negotiation during splicing, in #3444 . This PR doesn't contain the splicing-specific bits.
Additionally, as a result of a review finding:
OutputOwnedenum, we have removed theSharedControlFullyOwnedoption, asSharedcan covers it as well. It can cover any balance spit combination, including the case when the full amount is at one counterparty.