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

Run DLC channels checks during wallet refresh #2197

Merged
merged 1 commit into from Mar 8, 2024

Conversation

luckysori
Copy link
Contributor

@luckysori luckysori commented Mar 8, 2024

Fixes #2082 1.

In the past we were concerned about running all these tasks together, but after the bdk upgrade and the pivot away from Lightning there should be no problems. Also, any error that might occur during sync_dlc_channels is simply logged and does not interfere with updating the wallet history and balance.

A nice consequence of this change is that if a user triggers a wallet refresh and a fund transaction or a collaborative close transaction is found to be confirmed, the corresponding channel should update automatically, ensuring that the app's state is up-to-date and ready to keep trading.

Footnotes

  1. In my testing, I didn't find a problem that prevented the app from transitioning to the correct state. Instead, I noticed that it would take a longer time than necessary, which is why this PR is relevant.

In the past we were concerned about running all these tasks together,
but after the `bdk` upgrade and the pivot away from Lightning there
should be no problems. Also, any error that might occur during
`sync_dlc_channels` is simply logged and does not interfere with
updating the wallet history and balance.

A nice consequence of this change is that if a user triggers a wallet
refresh and a fund transaction or a collaborative close transaction is
found to be confirmed, the corresponding channel should update
automatically, ensuring that the app's state is up-to-date and ready
to keep trading.
@luckysori luckysori self-assigned this Mar 8, 2024
Copy link
Contributor

@holzeis holzeis left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Not sure if this will fix the linked issue, but let's give it a go and reopen if it's happening again 🙂

@luckysori luckysori added this pull request to the merge queue Mar 8, 2024
Merged via the queue into main with commit 80c315e Mar 8, 2024
21 checks passed
@luckysori luckysori deleted the feat/sync-app-channels-during-wallet-refresh branch March 8, 2024 17:39
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.

Signed channel hangs in state Collaborative Close Offered
2 participants