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

fix: do not allow creating another outgoing channel while one has 0 confirmations #420

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

rolznz
Copy link
Contributor

@rolznz rolznz commented Aug 7, 2024

Fixes #416

@rolznz rolznz requested review from bumi and im-adithya August 7, 2024 14:31
@rolznz rolznz added this to the v1.5.0 milestone Aug 7, 2024
)
) {
throw new Error(
"You already are opening a channel which has not been confirmed yet. Please wait for one block confirmation."
Copy link
Member

@im-adithya im-adithya Aug 8, 2024

Choose a reason for hiding this comment

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

Is it only "one" block confirmation?
Ah this is to stop onchain txs from failing so this should be good 👍

Copy link
Member

@im-adithya im-adithya left a comment

Choose a reason for hiding this comment

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

LGTM

@rolznz rolznz merged commit 4489bdc into master Aug 8, 2024
8 checks passed
@rolznz rolznz deleted the fix/double-unconfirmed-outbound-channel branch August 8, 2024 06:01
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.

Prevent outgoing channel from being created if there is already an unconfirmed outgoing channel
2 participants