@@ -1126,6 +1126,7 @@ impl_writeable_tlv_based!(PendingChannelMonitorUpdate, {
11261126pub(super) enum ChannelPhase<SP: Deref> where SP::Target: SignerProvider {
11271127	UnfundedOutboundV1(OutboundV1Channel<SP>),
11281128	UnfundedInboundV1(InboundV1Channel<SP>),
1129+ 	#[allow(dead_code)] // TODO(dual_funding): Remove once creating V2 channels is enabled.
11291130	UnfundedOutboundV2(OutboundV2Channel<SP>),
11301131	UnfundedInboundV2(InboundV2Channel<SP>),
11311132	Funded(Channel<SP>),
@@ -3899,6 +3900,7 @@ pub(super) fn calculate_our_funding_satoshis(
38993900pub(super) struct DualFundingChannelContext {
39003901	/// The amount in satoshis we will be contributing to the channel.
39013902	pub our_funding_satoshis: u64,
3903+ 	#[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled.
39023904	/// The amount in satoshis our counterparty will be contributing to the channel.
39033905	pub their_funding_satoshis: Option<u64>,
39043906	/// The funding transaction locktime suggested by the initiator. If set by us, it is always set
@@ -3918,6 +3920,7 @@ pub(super) struct DualFundingChannelContext {
39183920// Counterparty designates channel data owned by the another channel participant entity.
39193921pub(super) struct Channel<SP: Deref> where SP::Target: SignerProvider {
39203922	pub context: ChannelContext<SP>,
3923+ 	#[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled.
39213924	pub dual_funding_channel_context: Option<DualFundingChannelContext>,
39223925	/// The current interactive transaction construction session under negotiation.
39233926	pub interactive_tx_constructor: Option<InteractiveTxConstructor>,
@@ -8624,6 +8627,7 @@ pub(super) struct OutboundV2Channel<SP: Deref> where SP::Target: SignerProvider
86248627}
86258628
86268629impl<SP: Deref> OutboundV2Channel<SP> where SP::Target: SignerProvider {
8630+ 	#[allow(dead_code)] // TODO(dual_funding): Remove once creating V2 channels is enabled.
86278631	pub fn new<ES: Deref, F: Deref, L: Deref>(
86288632		fee_estimator: &LowerBoundedFeeEstimator<F>, entropy_source: &ES, signer_provider: &SP,
86298633		counterparty_node_id: PublicKey, their_features: &InitFeatures, funding_satoshis: u64,
@@ -8962,6 +8966,7 @@ impl<SP: Deref> InboundV2Channel<SP> where SP::Target: SignerProvider {
89628966	///
89638967	/// [`msgs::AcceptChannelV2`]: crate::ln::msgs::AcceptChannelV2
89648968	#[cfg(test)]
8969+ 	#[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled.
89658970	pub fn get_accept_channel_v2_message(&self) -> msgs::AcceptChannelV2 {
89668971		self.generate_accept_channel_v2_message()
89678972	}
0 commit comments