Skip to content

Commit 0a223f9

Browse files
committed
Extend begin_interactive_funding_tx_construction() with splicing-specific extra input (on top of #3443) #3516
1 parent ebff56a commit 0a223f9

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
@@ -2238,12 +2238,17 @@ impl<SP: Deref> PendingV2Channel<SP> where SP::Target: SignerProvider {
22382238
fn begin_interactive_funding_tx_construction<ES: Deref>(
22392239
&mut self, signer_provider: &SP, entropy_source: &ES, holder_node_id: PublicKey,
22402240
change_destination_opt: Option<ScriptBuf>,
2241+
prev_funding_input: Option<(TxIn, TransactionU16LenLimited)>,
22412242
) -> Result<Option<InteractiveTxMessageSend>, APIError>
22422243
where ES::Target: EntropySource
22432244
{
22442245
let mut funding_inputs = Vec::new();
22452246
mem::swap(&mut self.dual_funding_context.our_funding_inputs, &mut funding_inputs);
22462247

2248+
if let Some(prev_funding_input) = prev_funding_input {
2249+
funding_inputs.push(prev_funding_input);
2250+
}
2251+
22472252
let funding_inputs_prev_outputs = DualFundingChannelContext::txouts_from_input_prev_txs(&funding_inputs)
22482253
.map_err(|err| APIError::APIMisuseError { err: err.to_string() })?;
22492254

0 commit comments

Comments
 (0)