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: use short sync interval while LDK channel is waiting to become active #688

Merged
merged 1 commit into from
Sep 22, 2024

Conversation

rolznz
Copy link
Contributor

@rolznz rolznz commented Sep 21, 2024

Fixes #683

if channel.Confirmations != nil && channel.ConfirmationsRequired != nil && *channel.Confirmations < *channel.ConfirmationsRequired {
logger.Logger.WithField("channel_id", channel.UserChannelId).Debug("Using short sync time while opening channel")
ls.lastWalletSyncRequest = time.Now()
break
Copy link
Contributor

Choose a reason for hiding this comment

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

why break?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To exit the for loop if we already found a pending channel as there is no need to iterate the rest of the channels. It's not really necessary I guess. Do you think it should be removed?

@rolznz rolznz merged commit c3447e1 into master Sep 22, 2024
8 of 9 checks passed
@rolznz rolznz deleted the fix/ldk-opening-channel-frequent-sync branch September 22, 2024 04:18
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.

Use short sync interval while channels are opening
2 participants