-
Notifications
You must be signed in to change notification settings - Fork 385
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
Dual funding extension, needed also for splicing: begin_interactive_funding_tx_construction #3443
base: main
Are you sure you want to change the base?
Conversation
|
4f7e41b
to
0448cf9
Compare
Did the following:
|
0448cf9
to
0e47819
Compare
48e0518
to
9e44d2b
Compare
9e44d2b
to
b7e7a34
Compare
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.
Could you update the commit message with the rationale for the change? (i.e., specifically how it will be used in splicing)
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.18% 89.16% -0.03%
==========================================
Files 155 155
Lines 119274 119486 +212
Branches 119274 119486 +212
==========================================
+ Hits 106379 106543 +164
- Misses 10290 10344 +54
+ Partials 2605 2599 -6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
a379f1d
to
9256a47
Compare
9256a47
to
5194458
Compare
Rebased. |
c186145
to
2488430
Compare
2488430
to
9644612
Compare
Rebased, including FundingScope change (#3592 ) |
e8d57fe
to
9a9e511
Compare
…unding_tx_construction lightningdevkit#3443
…ific extra input (on top of lightningdevkit#3443) lightningdevkit#3516
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.
Needs rebase, and I think the fixups can be squashed. Will do another round of review then.
lightning/src/ln/channel.rs
Outdated
} | ||
|
||
let mut funding_inputs_prev_outputs: Vec<&TxOut> = Vec::with_capacity(funding_inputs.len()); | ||
// Check that vouts exist for each TxIn in provided transactions. |
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.
That seems ok to me. I don't have a specific preference.
…ific extra input (on top of lightningdevkit#3443) lightningdevkit#3516
9a9e511
to
c65c14e
Compare
Rebased |
c65c14e
to
c57393e
Compare
Let's squash the fixups. |
5aa36aa
to
3afdfce
Compare
Squashed into one commit, prepared for merge. |
3afdfce
to
e49751d
Compare
Rebased, post-#3407 |
15a61e0
to
e6da872
Compare
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`.
e6da872
to
d1da349
Compare
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 .