Skip to content

Commit b981cd7

Browse files
committed
Temporarily allow some unused dual-funding code
1 parent e184448 commit b981cd7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lightning/src/ln/channel.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1090,6 +1090,7 @@ impl_writeable_tlv_based!(PendingChannelMonitorUpdate, {
10901090
pub(super) enum ChannelPhase<SP: Deref> where SP::Target: SignerProvider {
10911091
UnfundedOutboundV1(OutboundV1Channel<SP>),
10921092
UnfundedInboundV1(InboundV1Channel<SP>),
1093+
#[allow(dead_code)] // TODO(dual_funding): Remove once creating V2 channels is enabled.
10931094
UnfundedOutboundV2(OutboundV2Channel<SP>),
10941095
UnfundedInboundV2(InboundV2Channel<SP>),
10951096
Funded(Channel<SP>),
@@ -3894,6 +3895,7 @@ pub(super) struct DualFundingChannelContext {
38943895
// Counterparty designates channel data owned by the another channel participant entity.
38953896
pub(super) struct Channel<SP: Deref> where SP::Target: SignerProvider {
38963897
pub context: ChannelContext<SP>,
3898+
#[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled.
38973899
pub dual_funding_channel_context: Option<DualFundingChannelContext>,
38983900
/// The current interactive transaction construction session under negotiation.
38993901
pub interactive_tx_constructor: Option<InteractiveTxConstructor>,
@@ -8472,6 +8474,7 @@ pub(super) struct OutboundV2Channel<SP: Deref> where SP::Target: SignerProvider
84728474
}
84738475

84748476
impl<SP: Deref> OutboundV2Channel<SP> where SP::Target: SignerProvider {
8477+
#[allow(dead_code)] // TODO(dual_funding): Remove once creating V2 channels is enabled.
84758478
pub fn new<ES: Deref, F: Deref>(
84768479
fee_estimator: &LowerBoundedFeeEstimator<F>, entropy_source: &ES, signer_provider: &SP,
84778480
counterparty_node_id: PublicKey, their_features: &InitFeatures, funding_satoshis: u64,
@@ -8774,6 +8777,7 @@ impl<SP: Deref> InboundV2Channel<SP> where SP::Target: SignerProvider {
87748777
///
87758778
/// [`msgs::AcceptChannelV2`]: crate::ln::msgs::AcceptChannelV2
87768779
#[cfg(test)]
8780+
#[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled.
87778781
pub fn get_accept_channel_v2_message(&self) -> msgs::AcceptChannelV2 {
87788782
self.generate_accept_channel_v2_message()
87798783
}

0 commit comments

Comments
 (0)