Skip to content

Make minimum channel opening confirmations configurable #330

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

sgeisler
Copy link
Collaborator

This also changes the default confirmations needed to open a channel from 12 to 6 since c-lightning will not accept values bigger than 10.

Ideally the user could provide a function Fn(channel_value_satoshis_msat: u64, value_to_self_msat: u64) -> u32, but providing a constant seems to be the more pragmatic solution for now.

@sgeisler sgeisler force-pushed the configurable_min_depth branch 2 times, most recently from 09db8bd to aa8edd9 Compare March 26, 2019 20:43
@TheBlueMatt
Copy link
Collaborator

TheBlueMatt commented Mar 26, 2019 via email

@sgeisler sgeisler force-pushed the configurable_min_depth branch from aa8edd9 to 56e779a Compare March 27, 2019 17:14
and change default from 12 to 6 (c-lightning compat)
@sgeisler sgeisler force-pushed the configurable_min_depth branch from 56e779a to dd21fe6 Compare March 27, 2019 19:49
/// Configuration we want to opening channels
#[derive(Clone, Debug)]
pub struct ChannelHandshakeConfig {
/// Confirmations we will wait for before considering the channel locked in
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you mention its for inbound channels?

/// Limits applied during channel creation.
pub channel_limits: ChannelHandshakeLimits,
pub peer_channel_config_limits: ChannelHandshakeLimits,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you change the comment above to say something like "Limits applied to the peer's channel config parameters during channel creation".

@TheBlueMatt
Copy link
Collaborator

Will take as #335.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants