@@ -1498,7 +1498,8 @@ pub(super) trait InteractivelyFunded<SP: Deref> where SP::Target: SignerProvider
14981498 self.dual_funding_context_mut().funding_feerate_sat_per_1000_weight,
14991499 holder_node_id, self.context().counterparty_node_id, self.is_initiator(),
15001500 self.dual_funding_context_mut().funding_tx_locktime,
1501- self.dual_funding_context_mut().our_funding_inputs.clone(), funding_outputs,
1501+ self.dual_funding_context_mut().our_funding_inputs.take().unwrap_or_else(|| vec![]),
1502+ funding_outputs,
15021503 expected_remote_shared_funding_output,
15031504 ).map_err(|_| APIError::APIMisuseError { err: "Incorrect shared output provided".into() })?;
15041505
@@ -3898,7 +3899,7 @@ pub(super) struct DualFundingChannelContext {
38983899 /// Note that the `our_funding_satoshis` field is equal to the total value of `our_funding_inputs`
38993900 /// minus any fees paid for our contributed weight. This means that change will never be generated
39003901 /// and the maximum value possible will go towards funding the channel.
3901- pub our_funding_inputs: Vec<(TxIn, TransactionU16LenLimited)>,
3902+ pub our_funding_inputs: Option< Vec<(TxIn, TransactionU16LenLimited)> >,
39023903}
39033904
39043905// Holder designates channel data owned for the benefit of the user client.
@@ -8549,7 +8550,7 @@ impl<SP: Deref> OutboundV2Channel<SP> where SP::Target: SignerProvider {
85498550 their_funding_satoshis: None,
85508551 funding_tx_locktime,
85518552 funding_feerate_sat_per_1000_weight,
8552- our_funding_inputs: funding_inputs,
8553+ our_funding_inputs: Some( funding_inputs) ,
85538554 },
85548555 #[cfg(any(dual_funding, splicing))]
85558556 interactive_tx_constructor: None,
@@ -8757,7 +8758,7 @@ impl<SP: Deref> InboundV2Channel<SP> where SP::Target: SignerProvider {
87578758 their_funding_satoshis: Some(msg.common_fields.funding_satoshis),
87588759 funding_tx_locktime: LockTime::from_consensus(msg.locktime),
87598760 funding_feerate_sat_per_1000_weight: msg.funding_feerate_sat_per_1000_weight,
8760- our_funding_inputs: funding_inputs,
8761+ our_funding_inputs: Some( funding_inputs) ,
87618762 },
87628763 interactive_tx_constructor: None,
87638764 };
0 commit comments