@@ -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>),
@@ -3887,6 +3888,7 @@ pub(super) struct DualFundingChannelContext {
3887
3888
// Counterparty designates channel data owned by the another channel participant entity.
3888
3889
pub(super) struct Channel<SP: Deref> where SP::Target: SignerProvider {
3889
3890
pub context: ChannelContext<SP>,
3891
+ #[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled.
3890
3892
pub dual_funding_channel_context: Option<DualFundingChannelContext>,
3891
3893
/// The current interactive transaction construction session under negotiation.
3892
3894
pub interactive_tx_constructor: Option<InteractiveTxConstructor>,
@@ -8466,6 +8468,7 @@ pub(super) struct OutboundV2Channel<SP: Deref> where SP::Target: SignerProvider
8466
8468
}
8467
8469
8468
8470
impl<SP: Deref> OutboundV2Channel<SP> where SP::Target: SignerProvider {
8471
+ #[allow(dead_code)] // TODO(dual_funding): Remove once creating V2 channels is enabled.
8469
8472
pub fn new<ES: Deref, F: Deref>(
8470
8473
fee_estimator: &LowerBoundedFeeEstimator<F>, entropy_source: &ES, signer_provider: &SP,
8471
8474
counterparty_node_id: PublicKey, their_features: &InitFeatures, funding_satoshis: u64,
@@ -8768,6 +8771,7 @@ impl<SP: Deref> InboundV2Channel<SP> where SP::Target: SignerProvider {
8768
8771
///
8769
8772
/// [`msgs::AcceptChannelV2`]: crate::ln::msgs::AcceptChannelV2
8770
8773
#[cfg(test)]
8774
+ #[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled.
8771
8775
pub fn get_accept_channel_v2_message(&self) -> msgs::AcceptChannelV2 {
8772
8776
self.generate_accept_channel_v2_message()
8773
8777
}
0 commit comments