Skip to content

Commit 883e056

Browse files
committed
Introduce InboundV1Channel & OutboundV1Channel
1 parent 1012526 commit 883e056

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

lightning/src/ln/channel.rs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6437,6 +6437,26 @@ impl<Signer: WriteableEcdsaChannelSigner> Channel<Signer> {
64376437
}
64386438
}
64396439

6440+
/// A not-yet-funded outbound (from holder) channel using V1 channel establishment.
6441+
pub(super) struct OutboundV1Channel<Signer: ChannelSigner> {
6442+
#[cfg(not(test))]
6443+
context: ChannelContext<Signer>,
6444+
#[cfg(test)]
6445+
pub context: ChannelContext<Signer>,
6446+
}
6447+
6448+
impl<Signer: WriteableEcdsaChannelSigner> OutboundV1Channel<Signer> {}
6449+
6450+
/// A not-yet-funded inbound (from counterparty) channel using V1 channel establishment.
6451+
pub(super) struct InboundV1Channel<Signer: ChannelSigner> {
6452+
#[cfg(not(test))]
6453+
context: ChannelContext<Signer>,
6454+
#[cfg(test)]
6455+
pub context: ChannelContext<Signer>,
6456+
}
6457+
6458+
impl<Signer: WriteableEcdsaChannelSigner> InboundV1Channel<Signer> {}
6459+
64406460
const SERIALIZATION_VERSION: u8 = 3;
64416461
const MIN_SERIALIZATION_VERSION: u8 = 2;
64426462

0 commit comments

Comments
 (0)