@@ -1092,6 +1092,7 @@ impl_writeable_tlv_based!(PendingChannelMonitorUpdate, {
1092
1092
pub(super) enum ChannelPhase<SP: Deref> where SP::Target: SignerProvider {
1093
1093
UnfundedOutboundV1(OutboundV1Channel<SP>),
1094
1094
UnfundedInboundV1(InboundV1Channel<SP>),
1095
+ #[allow(dead_code)] // TODO(dual_funding): Remove once creating V2 channels is enabled.
1095
1096
UnfundedOutboundV2(OutboundV2Channel<SP>),
1096
1097
UnfundedInboundV2(InboundV2Channel<SP>),
1097
1098
Funded(Channel<SP>),
@@ -3908,6 +3909,7 @@ pub(super) struct DualFundingChannelContext {
3908
3909
// Counterparty designates channel data owned by the another channel participant entity.
3909
3910
pub(super) struct Channel<SP: Deref> where SP::Target: SignerProvider {
3910
3911
pub context: ChannelContext<SP>,
3912
+ #[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled.
3911
3913
pub dual_funding_channel_context: Option<DualFundingChannelContext>,
3912
3914
/// The current interactive transaction construction session under negotiation.
3913
3915
pub interactive_tx_constructor: Option<InteractiveTxConstructor>,
@@ -8509,6 +8511,7 @@ pub(super) struct OutboundV2Channel<SP: Deref> where SP::Target: SignerProvider
8509
8511
}
8510
8512
8511
8513
impl<SP: Deref> OutboundV2Channel<SP> where SP::Target: SignerProvider {
8514
+ #[allow(dead_code)] // TODO(dual_funding): Remove once creating V2 channels is enabled.
8512
8515
pub fn new<ES: Deref, F: Deref>(
8513
8516
fee_estimator: &LowerBoundedFeeEstimator<F>, entropy_source: &ES, signer_provider: &SP,
8514
8517
counterparty_node_id: PublicKey, their_features: &InitFeatures, funding_satoshis: u64,
@@ -8838,6 +8841,7 @@ impl<SP: Deref> InboundV2Channel<SP> where SP::Target: SignerProvider {
8838
8841
///
8839
8842
/// [`msgs::AcceptChannelV2`]: crate::ln::msgs::AcceptChannelV2
8840
8843
#[cfg(test)]
8844
+ #[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled.
8841
8845
pub fn get_accept_channel_v2_message(&self) -> msgs::AcceptChannelV2 {
8842
8846
self.generate_accept_channel_v2_message()
8843
8847
}
0 commit comments