Skip to content
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

Use default confirmations for single-funded channel #3013

Merged
merged 2 commits into from
Feb 21, 2025

Conversation

t-bast
Copy link
Member

@t-bast t-bast commented Feb 20, 2025

For single-funded channels where we are the funder, we previously only waited for 1 confirmation before marking the funding transaction as confirmed. This is fine because we trust ourselves to not double-spend our own channels.

However, in #2969, we started assigning the short_channel_id when we consider the funding transaction confirmed, and not after 6 blocks. We thus now risk creating a short_channel_id after only 1 confirmation, which is too early in case a reorg happens. This wouldn't cause loss of funds because we would create invalid channel_updates and the channel would likely not be usable.

For single-funded channels where we are the funder, we previously only
waited for 1 confirmation before marking the funding transaction as
confirmed. This is fine because we trust ourselves to not double-spend
our own channels.

However, in #2969, we started assigning the `short_channel_id` when we
consider the funding transaction confirmed, and not after 6 blocks. We
thus now risk creating a `short_channel_id` after only 1 confirmation,
which is too early in case a reorg happens. This wouldn't cause loss
of funds because we would create invalid `channel_update`s and the
channel would likely not be usable.
@t-bast t-bast requested a review from pm47 February 20, 2025 17:09
@t-bast t-bast merged commit 67e896b into master Feb 21, 2025
1 check passed
@t-bast t-bast deleted the remove-one-block-conf-funder branch February 21, 2025 12:49
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