@@ -1127,6 +1127,7 @@ impl_writeable_tlv_based!(PendingChannelMonitorUpdate, {
11271127pub(super) enum ChannelPhase<SP: Deref> where SP::Target: SignerProvider {
11281128 UnfundedOutboundV1(OutboundV1Channel<SP>),
11291129 UnfundedInboundV1(InboundV1Channel<SP>),
1130+ #[allow(dead_code)] // TODO(dual_funding): Remove once creating V2 channels is enabled.
11301131 UnfundedOutboundV2(OutboundV2Channel<SP>),
11311132 UnfundedInboundV2(InboundV2Channel<SP>),
11321133 Funded(Channel<SP>),
@@ -4105,6 +4106,7 @@ pub(super) fn calculate_our_funding_satoshis(
41054106pub(super) struct DualFundingChannelContext {
41064107 /// The amount in satoshis we will be contributing to the channel.
41074108 pub our_funding_satoshis: u64,
4109+ #[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled.
41084110 /// The amount in satoshis our counterparty will be contributing to the channel.
41094111 pub their_funding_satoshis: Option<u64>,
41104112 /// The funding transaction locktime suggested by the initiator. If set by us, it is always set
@@ -8629,6 +8631,7 @@ pub(super) struct OutboundV2Channel<SP: Deref> where SP::Target: SignerProvider
86298631}
86308632
86318633impl<SP: Deref> OutboundV2Channel<SP> where SP::Target: SignerProvider {
8634+ #[allow(dead_code)] // TODO(dual_funding): Remove once creating V2 channels is enabled.
86328635 pub fn new<ES: Deref, F: Deref, L: Deref>(
86338636 fee_estimator: &LowerBoundedFeeEstimator<F>, entropy_source: &ES, signer_provider: &SP,
86348637 counterparty_node_id: PublicKey, their_features: &InitFeatures, funding_satoshis: u64,
@@ -8942,6 +8945,7 @@ impl<SP: Deref> InboundV2Channel<SP> where SP::Target: SignerProvider {
89428945 ///
89438946 /// [`msgs::AcceptChannelV2`]: crate::ln::msgs::AcceptChannelV2
89448947 #[cfg(test)]
8948+ #[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled.
89458949 pub fn get_accept_channel_v2_message(&self) -> msgs::AcceptChannelV2 {
89468950 self.generate_accept_channel_v2_message()
89478951 }
0 commit comments