Skip to content

Commit 92b521f

Browse files
committed
Extend begin_interactive_funding_tx_construction() with splicing-specific extra input (on top of #3443) #3516
1 parent 0901a74 commit 92b521f

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
@@ -2245,12 +2245,17 @@ impl<SP: Deref> PendingV2Channel<SP> where SP::Target: SignerProvider {
22452245
fn begin_interactive_funding_tx_construction<ES: Deref>(
22462246
&mut self, signer_provider: &SP, entropy_source: &ES, holder_node_id: PublicKey,
22472247
change_destination_opt: Option<ScriptBuf>,
2248+
prev_funding_input: Option<(TxIn, TransactionU16LenLimited)>,
22482249
) -> Result<Option<InteractiveTxMessageSend>, APIError>
22492250
where ES::Target: EntropySource
22502251
{
22512252
let mut funding_inputs = Vec::new();
22522253
mem::swap(&mut self.dual_funding_context.our_funding_inputs, &mut funding_inputs);
22532254

2255+
if let Some(prev_funding_input) = prev_funding_input {
2256+
funding_inputs.push(prev_funding_input);
2257+
}
2258+
22542259
let funding_inputs_prev_outputs = DualFundingChannelContext::txouts_from_input_prev_txs(&funding_inputs)
22552260
.map_err(|err| APIError::APIMisuseError { err: err.to_string() })?;
22562261

0 commit comments

Comments
 (0)