Dual funding extension: begin_interactive_funding_tx_construction#3443
Dual funding extension: begin_interactive_funding_tx_construction#3443wpaulino merged 2 commits intolightningdevkit:mainfrom
Conversation
|
|
4f7e41b to
0448cf9
Compare
|
Did the following:
|
0448cf9 to
0e47819
Compare
48e0518 to
9e44d2b
Compare
9e44d2b to
b7e7a34
Compare
70fde13 to
b1ae668
Compare
|
Review comments addressed, all resolved from my side (left a few open for visibility) |
b1ae668 to
86f9680
Compare
86f9680 to
a379f1d
Compare
Codecov 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
9256a47
Compare
9256a47 to
5194458
Compare
|
Rebased. |
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
fc58dcc to
5fc91e0
Compare
|
Squashed. Kept the |
5fc91e0 to
c75bbfb
Compare
|
LGTM after squash |
c75bbfb to
65dcc0e
Compare
Squashed (fix commit into the first one, kept 2nd separate) |
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.
65dcc0e to
f1a8602
Compare
…ific extra input (on top of lightningdevkit#3443) lightningdevkit#3516
…ific extra input (on top of lightningdevkit#3443) lightningdevkit#3516
…ific extra input (on top of lightningdevkit#3443) lightningdevkit#3516
…ific extra input (on top of lightningdevkit#3443) lightningdevkit#3516
…ific extra input (on top of lightningdevkit#3443) lightningdevkit#3516
…ific extra input (on top of lightningdevkit#3443) lightningdevkit#3516

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.