Skip to content

Commit 7a0479c

Browse files
committed
Extend begin_interactive_funding_tx_construction() with splicing-specific extra input (on top of lightningdevkit#3443) lightningdevkit#3516
1 parent 8f2807c commit 7a0479c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lightning/src/ln/channel.rs

+5
Original file line numberDiff line numberDiff line change
@@ -2243,12 +2243,17 @@ impl<SP: Deref> PendingV2Channel<SP> where SP::Target: SignerProvider {
22432243
fn begin_interactive_funding_tx_construction<ES: Deref>(
22442244
&mut self, signer_provider: &SP, entropy_source: &ES, holder_node_id: PublicKey,
22452245
change_destination_opt: Option<ScriptBuf>,
2246+
prev_funding_input: Option<(TxIn, TransactionU16LenLimited)>,
22462247
) -> Result<Option<InteractiveTxMessageSend>, APIError>
22472248
where ES::Target: EntropySource
22482249
{
22492250
let mut funding_inputs = Vec::new();
22502251
mem::swap(&mut self.dual_funding_context.our_funding_inputs, &mut funding_inputs);
22512252

2253+
if let Some(prev_funding_input) = prev_funding_input {
2254+
funding_inputs.push(prev_funding_input);
2255+
}
2256+
22522257
let funding_inputs_prev_outputs = DualFundingChannelContext::txouts_from_input_prev_txs(&funding_inputs)
22532258
.map_err(|err| APIError::APIMisuseError { err: err.to_string() })?;
22542259

0 commit comments

Comments
 (0)