Skip to content

Commit 396215d

Browse files
committed
Extend begin_interactive_funding_tx_construction() with splicing-specific extra input (on top of #3443) #3516
1 parent 49db7b1 commit 396215d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lightning/src/ln/channel.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2246,12 +2246,17 @@ impl<SP: Deref> PendingV2Channel<SP> where SP::Target: SignerProvider {
22462246
fn begin_interactive_funding_tx_construction<ES: Deref>(
22472247
&mut self, signer_provider: &SP, entropy_source: &ES, holder_node_id: PublicKey,
22482248
change_destination_opt: Option<ScriptBuf>,
2249+
prev_funding_input: Option<(TxIn, TransactionU16LenLimited)>,
22492250
) -> Result<Option<InteractiveTxMessageSend>, APIError>
22502251
where ES::Target: EntropySource
22512252
{
22522253
let mut funding_inputs = Vec::new();
22532254
mem::swap(&mut self.dual_funding_context.our_funding_inputs, &mut funding_inputs);
22542255

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

0 commit comments

Comments
 (0)