[−][src]Struct lightning::util::config::ChannelHandshakeConfig
Configuration we set when applicable.
Default::default() provides sane defaults.
Fields
minimum_depth: u32
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).
Default value: 6.
our_to_self_delay: u16
Set to the amount of time we require our counterparty to wait to claim their money.
It's one of the main parameter of our security model. We (or one of our watchtowers) MUST be online to check for peer having broadcast a revoked transaction to steal our funds at least once every our_to_self_delay blocks.
Meanwhile, asking for a too high delay, we bother peer to freeze funds for nothing in case of an honest unilateral channel close, which implicitly decrease the economic value of our channel.
Default value: BREAKDOWN_TIMEOUT (currently 144), we enforce it as a minimum at channel opening so you can tweak config to ask for more security, not less.
Trait Implementations
impl Clone for ChannelHandshakeConfig
[src]
fn clone(&self) -> ChannelHandshakeConfig
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ChannelHandshakeConfig
[src]
impl Default for ChannelHandshakeConfig
[src]
fn default() -> ChannelHandshakeConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for ChannelHandshakeConfig
impl Send for ChannelHandshakeConfig
impl Sync for ChannelHandshakeConfig
impl Unpin for ChannelHandshakeConfig
impl UnwindSafe for ChannelHandshakeConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,