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

funding: don't abort if cleanup fails #380

Merged
merged 1 commit into from
Jul 28, 2022
Merged

Conversation

guggero
Copy link
Member

@guggero guggero commented Jul 15, 2022

If we can't clean up pending channels from a previous batch attempt,
that shouldn't block startup. So instead of shutting down, we just log
the warning and continue.

Not sure how the DB got into that state, but this error is what's preventing LiT from starting in this case: lightninglabs/lightning-terminal#372

Pull Request Checklist

  • LndServices minimum version has been updated if new lnd apis/fields are
    used.

If we can't clean up pending channels from a previous batch attempt,
that shouldn't block startup. So instead of shutting down, we just log
the warning and continue.
@guggero guggero requested a review from positiveblue July 15, 2022 14:50
@guggero guggero marked this pull request as ready for review July 15, 2022 14:50
Copy link
Contributor

@positiveblue positiveblue left a comment

Choose a reason for hiding this comment

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

LGTM

The context in the msg may be useful for debugging it in the future. I am not sure how the db ended up in that state neither.

@levmi
Copy link

levmi commented Jul 15, 2022

Thanks for this change. I'm hoping it helps with the repeated issues we've had with litd startup in Umbrel recently.

Copy link
Member

@Roasbeef Roasbeef left a comment

Choose a reason for hiding this comment

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

LGTM 🧜‍♀️

@Roasbeef Roasbeef merged commit 385387f into master Jul 28, 2022
@guggero guggero deleted the startup-err-missed-batch branch July 28, 2022 07:17
positiveblue pushed a commit to positiveblue/pool that referenced this pull request Oct 11, 2022
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.

4 participants