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 abort blockstream loop during sync #10884

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

spalladino
Copy link
Collaborator

The L2 blockstream is expected to download blocks continuously until reaching the source's block number. However, to exit from that loop when the service is stopped, we continuously check for the isRunning flag and abort if it is not set.

This means that in a sync, which happens outside the running loop, we end up cutting that loop short. This provides a quick and dirty fix for that.

The L2 blockstream is expected to download blocks continuously until
reaching the source's block number. However, to exit from that loop when
the service is stopped, we continuously check for the isRunning flag and
abort if it is not set.

This means that in a sync, which happens outside the running loop, we
end up cutting that loop short. This provides a quick and dirty fix for
that.
@Thunkar Thunkar added the e2e-all CI: Enables this CI job. label Dec 19, 2024
@spalladino spalladino merged commit 69aaefd into master Dec 19, 2024
84 of 101 checks passed
@spalladino spalladino deleted the palla/dont-abort-blockstream-loop-on-sync branch December 19, 2024 16:24
Maddiaa0 pushed a commit that referenced this pull request Dec 20, 2024
The L2 blockstream is expected to download blocks continuously until
reaching the source's block number. However, to exit from that loop when
the service is stopped, we continuously check for the isRunning flag and
abort if it is not set.

This means that in a sync, which happens outside the running loop, we
end up cutting that loop short. This provides a quick and dirty fix for
that.
ludamad pushed a commit that referenced this pull request Dec 20, 2024
The L2 blockstream is expected to download blocks continuously until
reaching the source's block number. However, to exit from that loop when
the service is stopped, we continuously check for the isRunning flag and
abort if it is not set.

This means that in a sync, which happens outside the running loop, we
end up cutting that loop short. This provides a quick and dirty fix for
that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e2e-all CI: Enables this CI job.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants