@@ -1090,6 +1090,7 @@ impl_writeable_tlv_based!(PendingChannelMonitorUpdate, {
1090
1090
pub(super) enum ChannelPhase<SP: Deref> where SP::Target: SignerProvider {
1091
1091
UnfundedOutboundV1(OutboundV1Channel<SP>),
1092
1092
UnfundedInboundV1(InboundV1Channel<SP>),
1093
+ #[allow(dead_code)] // TODO(dual_funding): Remove once creating V2 channels is enabled.
1093
1094
UnfundedOutboundV2(OutboundV2Channel<SP>),
1094
1095
UnfundedInboundV2(InboundV2Channel<SP>),
1095
1096
Funded(Channel<SP>),
@@ -3894,6 +3895,7 @@ pub(super) struct DualFundingChannelContext {
3894
3895
// Counterparty designates channel data owned by the another channel participant entity.
3895
3896
pub(super) struct Channel<SP: Deref> where SP::Target: SignerProvider {
3896
3897
pub context: ChannelContext<SP>,
3898
+ #[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled.
3897
3899
pub dual_funding_channel_context: Option<DualFundingChannelContext>,
3898
3900
/// The current interactive transaction construction session under negotiation.
3899
3901
pub interactive_tx_constructor: Option<InteractiveTxConstructor>,
@@ -8472,6 +8474,7 @@ pub(super) struct OutboundV2Channel<SP: Deref> where SP::Target: SignerProvider
8472
8474
}
8473
8475
8474
8476
impl<SP: Deref> OutboundV2Channel<SP> where SP::Target: SignerProvider {
8477
+ #[allow(dead_code)] // TODO(dual_funding): Remove once creating V2 channels is enabled.
8475
8478
pub fn new<ES: Deref, F: Deref>(
8476
8479
fee_estimator: &LowerBoundedFeeEstimator<F>, entropy_source: &ES, signer_provider: &SP,
8477
8480
counterparty_node_id: PublicKey, their_features: &InitFeatures, funding_satoshis: u64,
@@ -8774,6 +8777,7 @@ impl<SP: Deref> InboundV2Channel<SP> where SP::Target: SignerProvider {
8774
8777
///
8775
8778
/// [`msgs::AcceptChannelV2`]: crate::ln::msgs::AcceptChannelV2
8776
8779
#[cfg(test)]
8780
+ #[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled.
8777
8781
pub fn get_accept_channel_v2_message(&self) -> msgs::AcceptChannelV2 {
8778
8782
self.generate_accept_channel_v2_message()
8779
8783
}
0 commit comments