@@ -1129,6 +1129,7 @@ impl_writeable_tlv_based!(PendingChannelMonitorUpdate, {
1129
1129
pub(super) enum ChannelPhase<SP: Deref> where SP::Target: SignerProvider {
1130
1130
UnfundedOutboundV1(OutboundV1Channel<SP>),
1131
1131
UnfundedInboundV1(InboundV1Channel<SP>),
1132
+ #[allow(dead_code)] // TODO(dual_funding): Remove once creating V2 channels is enabled.
1132
1133
UnfundedOutboundV2(OutboundV2Channel<SP>),
1133
1134
UnfundedInboundV2(InboundV2Channel<SP>),
1134
1135
Funded(Channel<SP>),
@@ -4177,6 +4178,7 @@ pub(super) struct DualFundingChannelContext {
4177
4178
/// Note that the `our_funding_satoshis` field is equal to the total value of `our_funding_inputs`
4178
4179
/// minus any fees paid for our contributed weight. This means that change will never be generated
4179
4180
/// and the maximum value possible will go towards funding the channel.
4181
+ #[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled.
4180
4182
pub our_funding_inputs: Vec<(TxIn, TransactionU16LenLimited)>,
4181
4183
}
4182
4184
@@ -8706,6 +8708,7 @@ pub(super) struct OutboundV2Channel<SP: Deref> where SP::Target: SignerProvider
8706
8708
}
8707
8709
8708
8710
impl<SP: Deref> OutboundV2Channel<SP> where SP::Target: SignerProvider {
8711
+ #[allow(dead_code)] // TODO(dual_funding): Remove once creating V2 channels is enabled.
8709
8712
pub fn new<ES: Deref, F: Deref, L: Deref>(
8710
8713
fee_estimator: &LowerBoundedFeeEstimator<F>, entropy_source: &ES, signer_provider: &SP,
8711
8714
counterparty_node_id: PublicKey, their_features: &InitFeatures, funding_satoshis: u64,
@@ -9017,6 +9020,7 @@ impl<SP: Deref> InboundV2Channel<SP> where SP::Target: SignerProvider {
9017
9020
///
9018
9021
/// [`msgs::AcceptChannelV2`]: crate::ln::msgs::AcceptChannelV2
9019
9022
#[cfg(test)]
9023
+ #[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled.
9020
9024
pub fn get_accept_channel_v2_message(&self) -> msgs::AcceptChannelV2 {
9021
9025
self.generate_accept_channel_v2_message()
9022
9026
}
0 commit comments