Skip to content

Commit 04d7bc0

Browse files
committed
Temporarily allow some unused dual-funding code
1 parent 9996b36 commit 04d7bc0

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

lightning/src/ln/channel.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,6 +1129,7 @@ impl_writeable_tlv_based!(PendingChannelMonitorUpdate, {
11291129
pub(super) enum ChannelPhase<SP: Deref> where SP::Target: SignerProvider {
11301130
UnfundedOutboundV1(OutboundV1Channel<SP>),
11311131
UnfundedInboundV1(InboundV1Channel<SP>),
1132+
#[allow(dead_code)] // TODO(dual_funding): Remove once creating V2 channels is enabled.
11321133
UnfundedOutboundV2(OutboundV2Channel<SP>),
11331134
UnfundedInboundV2(InboundV2Channel<SP>),
11341135
Funded(Channel<SP>),
@@ -4176,6 +4177,7 @@ pub(super) struct DualFundingChannelContext {
41764177
/// Note that the `our_funding_satoshis` field is equal to the total value of `our_funding_inputs`
41774178
/// minus any fees paid for our contributed weight. This means that change will never be generated
41784179
/// and the maximum value possible will go towards funding the channel.
4180+
#[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled.
41794181
pub our_funding_inputs: Vec<(TxIn, TransactionU16LenLimited)>,
41804182
}
41814183

@@ -8705,6 +8707,7 @@ pub(super) struct OutboundV2Channel<SP: Deref> where SP::Target: SignerProvider
87058707
}
87068708

87078709
impl<SP: Deref> OutboundV2Channel<SP> where SP::Target: SignerProvider {
8710+
#[allow(dead_code)] // TODO(dual_funding): Remove once creating V2 channels is enabled.
87088711
pub fn new<ES: Deref, F: Deref, L: Deref>(
87098712
fee_estimator: &LowerBoundedFeeEstimator<F>, entropy_source: &ES, signer_provider: &SP,
87108713
counterparty_node_id: PublicKey, their_features: &InitFeatures, funding_satoshis: u64,
@@ -9016,6 +9019,7 @@ impl<SP: Deref> InboundV2Channel<SP> where SP::Target: SignerProvider {
90169019
///
90179020
/// [`msgs::AcceptChannelV2`]: crate::ln::msgs::AcceptChannelV2
90189021
#[cfg(test)]
9022+
#[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled.
90199023
pub fn get_accept_channel_v2_message(&self) -> msgs::AcceptChannelV2 {
90209024
self.generate_accept_channel_v2_message()
90219025
}

lightning/src/ln/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ mod async_signer_tests;
8888
#[cfg(test)]
8989
#[allow(unused_mut)]
9090
mod offers_tests;
91+
#[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled.
9192
pub(crate) mod interactivetxs;
9293

9394
pub use self::peer_channel_encryptor::LN_MAX_MSG_LEN;

0 commit comments

Comments
 (0)