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

Stay in Offline and Syncing on splice published #539

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

t-bast
Copy link
Member

@t-bast t-bast commented Sep 26, 2023

When a splice transaction is published, it triggers a BITCOIN_FUNDING_SPENT event that we should ignore, because this isn't a force-close. If that event is received while we're in Offline or Syncing, we need to stay in those "wrapper" states.

Ideally, our type system should provide better guarantees here: we should have a different class hierarchy for channel states that can be wrapped in Offline and Syncing and channel states that don't (e.g. Closing). But this is quite a rabbit hole (that we already touched in #480) that deserves its own PR.

When a splice transaction is published, it triggers a BITCOIN_FUNDING_SPENT
event that we should ignore, because this isn't a force-close.

If that event is received while we're in Offline or Syncing, we need to
stay in those "wrapper" states.
@t-bast t-bast merged commit a1fe22d into master Sep 26, 2023
2 checks passed
@t-bast t-bast deleted the fix-offline-transitions branch September 26, 2023 09:21
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