From: Duncan Dean Date: Wed, 5 Apr 2023 11:43:02 +0000 (+0200) Subject: Introduce `InboundV1Channel` & `OutboundV1Channel` X-Git-Tag: v0.0.116-alpha1~10^2~9 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=883e0566ef22ca66c65f7798cef146639fec50b0;p=rust-lightning Introduce `InboundV1Channel` & `OutboundV1Channel` --- diff --git a/lightning/src/ln/channel.rs b/lightning/src/ln/channel.rs index c313a879b..3c22bdad4 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;