From: Duncan Dean Date: Thu, 24 Oct 2024 08:33:19 +0000 (+0200) Subject: Remove unused `Channel::dual_funding_channel_context` X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=b0dc394505a7d52d6f68484cae441a79be80730d;p=rust-lightning 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. --- 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, }) } }