Skip to content

Commit b33fe68

Browse files
committed
Extend begin_interactive_funding_tx_construction() with splicing-specific extra input (on top of lightningdevkit#3443) lightningdevkit#3516
1 parent 2145581 commit b33fe68

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lightning/src/ln/channel.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -2249,6 +2249,7 @@ impl<SP: Deref> PendingV2Channel<SP> where SP::Target: SignerProvider {
22492249
fn begin_interactive_funding_tx_construction<ES: Deref>(
22502250
&mut self, signer_provider: &SP, entropy_source: &ES, holder_node_id: PublicKey,
22512251
change_destination_opt: Option<ScriptBuf>,
2252+
prev_funding_input: Option<(TxIn, TransactionU16LenLimited)>,
22522253
) -> Result<Option<InteractiveTxMessageSend>, AbortReason>
22532254
where ES::Target: EntropySource
22542255
{
@@ -2258,7 +2259,9 @@ impl<SP: Deref> PendingV2Channel<SP> where SP::Target: SignerProvider {
22582259
let mut funding_inputs = Vec::new();
22592260
mem::swap(&mut self.dual_funding_context.our_funding_inputs, &mut funding_inputs);
22602261

2261-
// TODO(splicing): Add prev funding tx as input, must be provided as a parameter
2262+
if let Some(prev_funding_input) = prev_funding_input {
2263+
funding_inputs.push(prev_funding_input);
2264+
}
22622265

22632266
// Add output for funding tx
22642267
// Note: For the error case when the inputs are insufficient, it will be handled after

0 commit comments

Comments
 (0)