Skip to content

Commit 93028bb

Browse files
committed
Add splice specific optional prev-funding param to begin_intera...()
1 parent 0e812e0 commit 93028bb

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

2236+
if let Some(prev_funding_input) = prev_funding_input {
2237+
funding_inputs.push(prev_funding_input);
2238+
}
2239+
22352240
let funding_inputs_prev_outputs = DualFundingChannelContext::txouts_from_input_prev_txs(&funding_inputs)
22362241
.map_err(|err| APIError::APIMisuseError { err: err.to_string() })?;
22372242

0 commit comments

Comments
 (0)