Skip to content

Commit 0db700b

Browse files
committed
Temporarily allow some unused dual-funding code
1 parent d72499d commit 0db700b

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>),
@@ -3895,6 +3896,7 @@ pub(super) struct DualFundingChannelContext {
38953896
// Counterparty designates channel data owned by the another channel participant entity.
38963897
pub(super) struct Channel<SP: Deref> where SP::Target: SignerProvider {
38973898
pub context: ChannelContext<SP>,
3899+
#[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled.
38983900
pub dual_funding_channel_context: Option<DualFundingChannelContext>,
38993901
/// The current interactive transaction construction session under negotiation.
39003902
pub interactive_tx_constructor: Option<InteractiveTxConstructor>,
@@ -8474,6 +8476,7 @@ pub(super) struct OutboundV2Channel<SP: Deref> where SP::Target: SignerProvider
84748476
}
84758477

84768478
impl<SP: Deref> OutboundV2Channel<SP> where SP::Target: SignerProvider {
8479+
#[allow(dead_code)] // TODO(dual_funding): Remove once creating V2 channels is enabled.
84778480
pub fn new<ES: Deref, F: Deref>(
84788481
fee_estimator: &LowerBoundedFeeEstimator<F>, entropy_source: &ES, signer_provider: &SP,
84798482
counterparty_node_id: PublicKey, their_features: &InitFeatures, funding_satoshis: u64,
@@ -8776,6 +8779,7 @@ impl<SP: Deref> InboundV2Channel<SP> where SP::Target: SignerProvider {
87768779
///
87778780
/// [`msgs::AcceptChannelV2`]: crate::ln::msgs::AcceptChannelV2
87788781
#[cfg(test)]
8782+
#[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled.
87798783
pub fn get_accept_channel_v2_message(&self) -> msgs::AcceptChannelV2 {
87808784
self.generate_accept_channel_v2_message()
87818785
}

0 commit comments

Comments
 (0)