]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Remove unused `Channel::dual_funding_channel_context`
authorDuncan Dean <git@dunxen.dev>
Thu, 24 Oct 2024 08:33:19 +0000 (10:33 +0200)
committerDuncan Dean <git@dunxen.dev>
Mon, 18 Nov 2024 13:19:00 +0000 (15:19 +0200)
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

index 926fd3beb1e1e5c8151a2019e187d45375f9f40b..636b0bd5d1d82f5a177ec34c02bbe9b0e91b88f8 100644 (file)
@@ -3840,7 +3840,6 @@ pub(super) struct DualFundingChannelContext {
 // Counterparty designates channel data owned by the another channel participant entity.
 pub(super) struct Channel<SP: Deref> where SP::Target: SignerProvider {
        pub context: ChannelContext<SP>,
-       pub dual_funding_channel_context: Option<DualFundingChannelContext>,
 }
 
 #[cfg(any(test, fuzzing))]
@@ -8024,7 +8023,6 @@ impl<SP: Deref> OutboundV1Channel<SP> 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<SP: Deref> InboundV1Channel<SP> 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,
                })
        }
 }