Skip to content

Commit 1fe60f1

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

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
@@ -2247,6 +2247,7 @@ impl<SP: Deref> PendingV2Channel<SP> where SP::Target: SignerProvider {
22472247
fn begin_interactive_funding_tx_construction<ES: Deref>(
22482248
&mut self, signer_provider: &SP, entropy_source: &ES, holder_node_id: PublicKey,
22492249
change_destination_opt: Option<ScriptBuf>,
2250+
prev_funding_input: Option<(TxIn, TransactionU16LenLimited)>,
22502251
) -> Result<Option<InteractiveTxMessageSend>, AbortReason>
22512252
where ES::Target: EntropySource
22522253
{
@@ -2256,7 +2257,9 @@ impl<SP: Deref> PendingV2Channel<SP> where SP::Target: SignerProvider {
22562257
let mut funding_inputs = Vec::new();
22572258
mem::swap(&mut self.dual_funding_context.our_funding_inputs, &mut funding_inputs);
22582259

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

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

0 commit comments

Comments
 (0)