@@ -1092,6 +1092,7 @@ impl_writeable_tlv_based!(PendingChannelMonitorUpdate, {
10921092pub(super) enum ChannelPhase<SP: Deref> where SP::Target: SignerProvider {
10931093 UnfundedOutboundV1(OutboundV1Channel<SP>),
10941094 UnfundedInboundV1(InboundV1Channel<SP>),
1095+ #[allow(dead_code)] // TODO(dual_funding): Remove once creating V2 channels is enabled.
10951096 UnfundedOutboundV2(OutboundV2Channel<SP>),
10961097 UnfundedInboundV2(InboundV2Channel<SP>),
10971098 Funded(Channel<SP>),
@@ -3908,6 +3909,7 @@ pub(super) struct DualFundingChannelContext {
39083909// Counterparty designates channel data owned by the another channel participant entity.
39093910pub(super) struct Channel<SP: Deref> where SP::Target: SignerProvider {
39103911 pub context: ChannelContext<SP>,
3912+ #[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled.
39113913 pub dual_funding_channel_context: Option<DualFundingChannelContext>,
39123914 /// The current interactive transaction construction session under negotiation.
39133915 pub interactive_tx_constructor: Option<InteractiveTxConstructor>,
@@ -8509,6 +8511,7 @@ pub(super) struct OutboundV2Channel<SP: Deref> where SP::Target: SignerProvider
85098511}
85108512
85118513impl<SP: Deref> OutboundV2Channel<SP> where SP::Target: SignerProvider {
8514+ #[allow(dead_code)] // TODO(dual_funding): Remove once creating V2 channels is enabled.
85128515 pub fn new<ES: Deref, F: Deref>(
85138516 fee_estimator: &LowerBoundedFeeEstimator<F>, entropy_source: &ES, signer_provider: &SP,
85148517 counterparty_node_id: PublicKey, their_features: &InitFeatures, funding_satoshis: u64,
@@ -8838,6 +8841,7 @@ impl<SP: Deref> InboundV2Channel<SP> where SP::Target: SignerProvider {
88388841 ///
88398842 /// [`msgs::AcceptChannelV2`]: crate::ln::msgs::AcceptChannelV2
88408843 #[cfg(test)]
8844+ #[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled.
88418845 pub fn get_accept_channel_v2_message(&self) -> msgs::AcceptChannelV2 {
88428846 self.generate_accept_channel_v2_message()
88438847 }
0 commit comments