diff --git a/lightning/src/ln/channel.rs b/lightning/src/ln/channel.rs index 95795051c16..bd74a12b95e 100644 --- a/lightning/src/ln/channel.rs +++ b/lightning/src/ln/channel.rs @@ -1092,6 +1092,7 @@ impl_writeable_tlv_based!(PendingChannelMonitorUpdate, { pub(super) enum ChannelPhase where SP::Target: SignerProvider { UnfundedOutboundV1(OutboundV1Channel), UnfundedInboundV1(InboundV1Channel), + #[allow(dead_code)] // TODO(dual_funding): Remove once creating V2 channels is enabled. UnfundedOutboundV2(OutboundV2Channel), UnfundedInboundV2(InboundV2Channel), Funded(Channel), @@ -3908,6 +3909,7 @@ pub(super) struct DualFundingChannelContext { // Counterparty designates channel data owned by the another channel participant entity. pub(super) struct Channel where SP::Target: SignerProvider { pub context: ChannelContext, + #[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled. pub dual_funding_channel_context: Option, /// The current interactive transaction construction session under negotiation. pub interactive_tx_constructor: Option, @@ -8509,6 +8511,7 @@ pub(super) struct OutboundV2Channel where SP::Target: SignerProvider } impl OutboundV2Channel where SP::Target: SignerProvider { + #[allow(dead_code)] // TODO(dual_funding): Remove once creating V2 channels is enabled. pub fn new( fee_estimator: &LowerBoundedFeeEstimator, entropy_source: &ES, signer_provider: &SP, counterparty_node_id: PublicKey, their_features: &InitFeatures, funding_satoshis: u64, @@ -8838,6 +8841,7 @@ impl InboundV2Channel where SP::Target: SignerProvider { /// /// [`msgs::AcceptChannelV2`]: crate::ln::msgs::AcceptChannelV2 #[cfg(test)] + #[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled. pub fn get_accept_channel_v2_message(&self) -> msgs::AcceptChannelV2 { self.generate_accept_channel_v2_message() }