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

level-monitor: Fix issue with warp syncing #2053

Merged
merged 3 commits into from
Oct 27, 2023

Conversation

bkchr
Copy link
Member

@bkchr bkchr commented Oct 27, 2023

When warp syncing a node we import a header of the parachain around the tip of the chain. This header is currently not imported as finalized block (should be fixed at some point as well), the parent headers are not yet present (still being synced) and thus, we run into a panic. Even if there is a case where a leaf could not be found in the database, this probably means that the db is broken and it will fail somewhere elese.

When warp syncing a node we import a header of the parachain around the
tip of the chain. This header is currently not imported as finalized
block (should be fixed at some point as well), the parent headers are
not yet present (still being synced) and thus, we run into a panic. Even
if there is a case where a leaf could not be found in the database, this
probably means that the db is broken and it will fail somewhere elese.
@bkchr bkchr added the T0-node This PR/Issue is related to the topic “node”. label Oct 27, 2023
@bkchr bkchr requested review from davxy and a team October 27, 2023 07:14
@bkchr bkchr requested a review from a team October 27, 2023 14:58
@michalkucharczyk michalkucharczyk requested a review from a team October 27, 2023 15:06
@bkchr bkchr merged commit bea8bae into master Oct 27, 2023
118 checks passed
@bkchr bkchr deleted the bkchr-fix-level-monitor-after-warp-sync branch October 27, 2023 18:36
s0me0ne-unkn0wn pushed a commit that referenced this pull request Oct 29, 2023
When warp syncing a node we import a header of the parachain around the
tip of the chain. This header is currently not imported as finalized
block (should be fixed at some point as well), the parent headers are
not yet present (still being synced) and thus, we run into a panic. Even
if there is a case where a leaf could not be found in the database, this
probably means that the db is broken and it will fail somewhere elese.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T0-node This PR/Issue is related to the topic “node”.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants