Skip to content

Commit b0da316

Browse files
committed
Extend begin_interactive_funding_tx_construction() with splicing-specific extra input (on top of #3443) #3516
1 parent 7d85d12 commit b0da316

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
@@ -2164,12 +2164,17 @@ impl<SP: Deref> PendingV2Channel<SP> where SP::Target: SignerProvider {
21642164
fn begin_interactive_funding_tx_construction<ES: Deref>(
21652165
&mut self, signer_provider: &SP, entropy_source: &ES, holder_node_id: PublicKey,
21662166
change_destination_opt: Option<ScriptBuf>,
2167+
prev_funding_input: Option<(TxIn, TransactionU16LenLimited)>,
21672168
) -> Result<Option<InteractiveTxMessageSend>, APIError>
21682169
where ES::Target: EntropySource
21692170
{
21702171
let mut funding_inputs = Vec::new();
21712172
mem::swap(&mut self.dual_funding_context.our_funding_inputs, &mut funding_inputs);
21722173

2174+
if let Some(prev_funding_input) = prev_funding_input {
2175+
funding_inputs.push(prev_funding_input);
2176+
}
2177+
21732178
let funding_inputs_prev_outputs = DualFundingChannelContext::txouts_from_input_prev_txs(&funding_inputs)
21742179
.map_err(|err| APIError::APIMisuseError { err: err.to_string() })?;
21752180

0 commit comments

Comments
 (0)