@@ -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>),
@@ -4182,6 +4183,7 @@ pub(super) struct DualFundingChannelContext {
4182
4183
/// Note that the `our_funding_satoshis` field is equal to the total value of `our_funding_inputs`
4183
4184
/// minus any fees paid for our contributed weight. This means that change will never be generated
4184
4185
/// and the maximum value possible will go towards funding the channel.
4186
+ #[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled.
4185
4187
pub our_funding_inputs: Vec<(TxIn, TransactionU16LenLimited)>,
4186
4188
}
4187
4189
@@ -8710,6 +8712,7 @@ pub(super) struct OutboundV2Channel<SP: Deref> where SP::Target: SignerProvider
8710
8712
}
8711
8713
8712
8714
impl<SP: Deref> OutboundV2Channel<SP> where SP::Target: SignerProvider {
8715
+ #[allow(dead_code)] // TODO(dual_funding): Remove once creating V2 channels is enabled.
8713
8716
pub fn new<ES: Deref, F: Deref, L: Deref>(
8714
8717
fee_estimator: &LowerBoundedFeeEstimator<F>, entropy_source: &ES, signer_provider: &SP,
8715
8718
counterparty_node_id: PublicKey, their_features: &InitFeatures, funding_satoshis: u64,
@@ -9021,6 +9024,7 @@ impl<SP: Deref> InboundV2Channel<SP> where SP::Target: SignerProvider {
9021
9024
///
9022
9025
/// [`msgs::AcceptChannelV2`]: crate::ln::msgs::AcceptChannelV2
9023
9026
#[cfg(test)]
9027
+ #[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled.
9024
9028
pub fn get_accept_channel_v2_message(&self) -> msgs::AcceptChannelV2 {
9025
9029
self.generate_accept_channel_v2_message()
9026
9030
}
0 commit comments