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: Fix pbss snapshot inconsistency with engine-sync enabled when starting #189

Merged
merged 4 commits into from
Oct 30, 2024

Conversation

krish-nr
Copy link
Contributor

Description

The issue arises when PBSS snapshots are created without stopping the system, leading to inconsistencies in safe and unsafe block heights due to data persistence order. This problem occurs specifically when engine-sync is enabled, preventing proper recovery.

Rationale

This fix addresses an issue with starting snapshots created using PBSS in specific scenarios. PBSS snapshots generated without stopping can result in inconsistencies in the safe and unsafe block heights due to the order of data persistence. In cases where engine-sync is not enabled, the existing logic can automatically recover and start. However, when engine-sync is enabled, the initialization logic prevents entry into the op-node's recovery logic. Therefore, this fix adjusts the block height relationships during Geth initialization to resolve the issue.

Example

N/A

bnoieh
bnoieh previously approved these changes Sep 27, 2024
core/blockchain.go Outdated Show resolved Hide resolved
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

@owen-reorg owen-reorg merged commit d3e4eb6 into bnb-chain:develop Oct 30, 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.

5 participants