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

(op-geth) Add extra error info when meet an unexpected el sync #132

Merged
merged 2 commits into from
Aug 27, 2024

Conversation

krish-nr
Copy link
Contributor

@krish-nr krish-nr commented Jul 31, 2024

Description

When op-geth exits due to certain exceptional circumstances and the truncate operation results in the deletion of head data, the block-by-block insertion requests from op-node will trigger an EL sync in geth. This PR addresses this situation.
related op-node pr: https://github.com/bnb-chain/opbnb/pull/222

Rationale

Instead of ignoring the unexpected EL sync triggers, specific errors are returned. op-node will handle them based on the state.

Example

N/A

Changes

@krish-nr krish-nr marked this pull request as ready for review July 31, 2024 02:04
@github-actions github-actions bot requested review from redhdx and welkin22 July 31, 2024 02:05
@krish-nr krish-nr force-pushed the pbss_recover_chores branch 2 times, most recently from e277e17 to c45637b Compare August 1, 2024 02:06
@krish-nr krish-nr force-pushed the pbss_recover_chores branch from c45637b to e1be871 Compare August 1, 2024 09:45
@krish-nr krish-nr changed the title (op-geth) Add extra error info when meet a unexpected el sync (op-geth) Add extra error info when meet an unexpected el sync Aug 2, 2024
eth/catalyst/api.go Outdated Show resolved Hide resolved
@krish-nr krish-nr force-pushed the pbss_recover_chores branch from 41efdeb to b0f19f4 Compare August 6, 2024 01:22
@krish-nr krish-nr force-pushed the pbss_recover_chores branch from b0f19f4 to 2828964 Compare August 6, 2024 01:24
Copy link
Contributor

@welkin22 welkin22 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@redhdx redhdx left a comment

Choose a reason for hiding this comment

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

LGTM

@owen-reorg owen-reorg merged commit 56ff16f into bnb-chain:develop Aug 27, 2024
1 check passed
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.

4 participants