Skip to content

Commit 9efbcc4

Browse files
committed
Add splice specific optional prev-funding param to begin_intera...()
1 parent d1da349 commit 9efbcc4

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
@@ -2228,12 +2228,17 @@ impl<SP: Deref> PendingV2Channel<SP> where SP::Target: SignerProvider {
22282228
fn begin_interactive_funding_tx_construction<ES: Deref>(
22292229
&mut self, signer_provider: &SP, entropy_source: &ES, holder_node_id: PublicKey,
22302230
change_destination_opt: Option<ScriptBuf>,
2231+
prev_funding_input: Option<(TxIn, TransactionU16LenLimited)>,
22312232
) -> Result<Option<InteractiveTxMessageSend>, APIError>
22322233
where ES::Target: EntropySource
22332234
{
22342235
let mut funding_inputs = Vec::new();
22352236
mem::swap(&mut self.dual_funding_context.our_funding_inputs, &mut funding_inputs);
22362237

2238+
if let Some(prev_funding_input) = prev_funding_input {
2239+
funding_inputs.push(prev_funding_input);
2240+
}
2241+
22372242
let funding_inputs_prev_outputs = DualFundingChannelContext::txouts_from_input_prev_txs(&funding_inputs)
22382243
.map_err(|err| APIError::APIMisuseError { err: err.to_string() })?;
22392244

0 commit comments

Comments
 (0)