Skip to content

fix: Restart archiver loop if L1 block falls more than 128 blocks behind#13602

Merged
spalladino merged 2 commits into
masterfrom
palla/check-old-block-tag
Apr 29, 2025
Merged

fix: Restart archiver loop if L1 block falls more than 128 blocks behind#13602
spalladino merged 2 commits into
masterfrom
palla/check-old-block-tag

Conversation

@spalladino

Copy link
Copy Markdown
Contributor

If the currentL1Block used in the archiver sync loop falls more than 128 blocks behind (eg during a very long sync), then eth_call operations that pin the block number (status, canPrune) may end up querying a block evicted by a non-archive node. If this happens, we just abort the current sync and restart. This should not evict any messages or blocks already downloaded.

Fixes #13596

@spalladino spalladino requested review from LHerskind and spypsy April 16, 2025 17:55
@spalladino

Copy link
Copy Markdown
Contributor Author

@LHerskind given your comments on Slack, I'll wait for your ok before merging.

@spalladino spalladino added this pull request to the merge queue Apr 29, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 29, 2025
@spalladino spalladino force-pushed the palla/check-old-block-tag branch from d4bb45d to e04ae54 Compare April 29, 2025 14:58
@spalladino spalladino enabled auto-merge April 29, 2025 14:58
@spalladino spalladino added this pull request to the merge queue Apr 29, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 29, 2025
@spalladino spalladino added this pull request to the merge queue Apr 29, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Apr 29, 2025
@spalladino spalladino force-pushed the palla/check-old-block-tag branch from e04ae54 to 57be3f8 Compare April 29, 2025 22:08
@spalladino spalladino enabled auto-merge April 29, 2025 22:08
@spalladino spalladino added this pull request to the merge queue Apr 29, 2025
Merged via the queue into master with commit 001a340 Apr 29, 2025
7 checks passed
@spalladino spalladino deleted the palla/check-old-block-tag branch April 29, 2025 23:10
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.

bug: Trying to read historical L1 data

3 participants