+/// Configuration we set when applicable.
+#[derive(Clone, Debug)]
+pub struct ChannelHandshakeConfig {
+ /// Confirmations we will wait for before considering the channel locked in.
+ /// Applied only for inbound channels (see ChannelHandshakeLimits::max_minimum_depth for the
+ /// equivalent limit applied to outbound channels).
+ pub minimum_depth: u32,
+}
+
+impl ChannelHandshakeConfig {
+ /// Provides sane defaults for `ChannelHandshakeConfig`
+ pub fn new() -> ChannelHandshakeConfig {
+ ChannelHandshakeConfig {
+ minimum_depth: 6,
+ }
+ }
+}
+