From b0dc394505a7d52d6f68484cae441a79be80730d Mon Sep 17 00:00:00 2001 From: Duncan Dean Date: Thu, 24 Oct 2024 10:33:19 +0200 Subject: [PATCH] Remove unused `Channel::dual_funding_channel_context` For now this is unneeded as we do not provide any inputs as channel acceptor and we do not allow creating outbound channels yet. It will be re-added when that functionality is introduced. --- lightning/src/ln/channel.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lightning/src/ln/channel.rs b/lightning/src/ln/channel.rs index 926fd3beb..636b0bd5d 100644 --- a/lightning/src/ln/channel.rs +++ b/lightning/src/ln/channel.rs @@ -3840,7 +3840,6 @@ pub(super) struct DualFundingChannelContext { // Counterparty designates channel data owned by the another channel participant entity. pub(super) struct Channel where SP::Target: SignerProvider { pub context: ChannelContext, - pub dual_funding_channel_context: Option, } #[cfg(any(test, fuzzing))] @@ -8024,7 +8023,6 @@ impl OutboundV1Channel where SP::Target: SignerProvider { let mut channel = Channel { context: self.context, - dual_funding_channel_context: None, }; let need_channel_ready = channel.check_get_channel_ready(0, logger).is_some(); @@ -8253,7 +8251,6 @@ impl InboundV1Channel where SP::Target: SignerProvider { // `ChannelMonitor`. let mut channel = Channel { context: self.context, - dual_funding_channel_context: None, }; let need_channel_ready = channel.check_get_channel_ready(0, logger).is_some(); channel.monitor_updating_paused(false, false, need_channel_ready, Vec::new(), Vec::new(), Vec::new()); @@ -9610,7 +9607,6 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, u32, &'c Ch blocked_monitor_updates: blocked_monitor_updates.unwrap(), is_manual_broadcast: is_manual_broadcast.unwrap_or(false), }, - dual_funding_channel_context: None, }) } } -- 2.39.5