@@ -34,7 +34,7 @@ use crate::types::features::{ChannelTypeFeatures, InitFeatures};
34
34
use crate::ln::interactivetxs::{
35
35
calculate_change_output_value, get_output_weight, AbortReason, HandleTxCompleteResult, InteractiveTxConstructor,
36
36
InteractiveTxConstructorArgs, InteractiveTxMessageSend, InteractiveTxSigningSession, InteractiveTxMessageSendResult,
37
- OutputOwned, SharedOwnedOutput, TX_COMMON_FIELDS_WEIGHT,
37
+ NegotiationInput, OutputOwned, SharedOwnedOutput, TX_COMMON_FIELDS_WEIGHT,
38
38
};
39
39
use crate::ln::msgs;
40
40
use crate::ln::msgs::{ClosingSigned, ClosingSignedFeeRange, DecodeError, OnionErrorPacket};
@@ -2513,6 +2513,7 @@ impl<SP: Deref> PendingV2Channel<SP> where SP::Target: SignerProvider {
2513
2513
inputs_to_contribute: funding_inputs,
2514
2514
outputs_to_contribute: funding_outputs,
2515
2515
expected_remote_shared_funding_output,
2516
+ expected_remote_shared_funding_input: None,
2516
2517
};
2517
2518
let mut tx_constructor = InteractiveTxConstructor::new(constructor_args)?;
2518
2519
let msg = tx_constructor.take_initiator_first_message();
@@ -5157,7 +5158,7 @@ pub(super) struct DualFundingChannelContext {
5157
5158
///
5158
5159
/// Note that this field may be emptied once the interactive negotiation has been started.
5159
5160
#[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled.
5160
- pub our_funding_inputs: Vec<(TxIn, TransactionU16LenLimited) >,
5161
+ pub our_funding_inputs: Vec<NegotiationInput >,
5161
5162
}
5162
5163
5163
5164
// Holder designates channel data owned for the benefit of the user client.
@@ -10388,7 +10389,7 @@ impl<SP: Deref> PendingV2Channel<SP> where SP::Target: SignerProvider {
10388
10389
their_funding_satoshis: None,
10389
10390
funding_tx_locktime,
10390
10391
funding_feerate_sat_per_1000_weight,
10391
- our_funding_inputs: funding_inputs,
10392
+ our_funding_inputs: funding_inputs.into_iter().map(|(txin, tx)| NegotiationInput::Nonshared(txin, tx)).collect() ,
10392
10393
};
10393
10394
let chan = Self {
10394
10395
funding,
@@ -10554,6 +10555,7 @@ impl<SP: Deref> PendingV2Channel<SP> where SP::Target: SignerProvider {
10554
10555
inputs_to_contribute: our_funding_inputs,
10555
10556
outputs_to_contribute: Vec::new(),
10556
10557
expected_remote_shared_funding_output: Some((funding.get_funding_redeemscript().to_p2wsh(), funding.get_value_satoshis())),
10558
+ expected_remote_shared_funding_input: None,
10557
10559
}
10558
10560
).map_err(|_| ChannelError::Close((
10559
10561
"V2 channel rejected due to sender error".into(),
0 commit comments