From 883e0566ef22ca66c65f7798cef146639fec50b0 Mon Sep 17 00:00:00 2001 From: Duncan Dean Date: Wed, 5 Apr 2023 13:43:02 +0200 Subject: [PATCH] Introduce `InboundV1Channel` & `OutboundV1Channel` --- lightning/src/ln/channel.rs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/lightning/src/ln/channel.rs b/lightning/src/ln/channel.rs index c313a879..3c22bdad 100644 --- a/lightning/src/ln/channel.rs +++ b/lightning/src/ln/channel.rs @@ -6437,6 +6437,26 @@ impl Channel { } } +/// A not-yet-funded outbound (from holder) channel using V1 channel establishment. +pub(super) struct OutboundV1Channel { + #[cfg(not(test))] + context: ChannelContext, + #[cfg(test)] + pub context: ChannelContext, +} + +impl OutboundV1Channel {} + +/// A not-yet-funded inbound (from counterparty) channel using V1 channel establishment. +pub(super) struct InboundV1Channel { + #[cfg(not(test))] + context: ChannelContext, + #[cfg(test)] + pub context: ChannelContext, +} + +impl InboundV1Channel {} + const SERIALIZATION_VERSION: u8 = 3; const MIN_SERIALIZATION_VERSION: u8 = 2; -- 2.30.2