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

Truncate data stream while launching the Node #1001

Open
wants to merge 6 commits into
base: zkevm
Choose a base branch
from

Conversation

zjg555543
Copy link

@zjg555543 zjg555543 commented Aug 21, 2024

Function:

  • Allow truncation of data stream blocks via configuration file.
  • Halted the node due to a serious error while writing the data stream

Case:

  • In extreme situations where the data stream is corrupted or lost at a certain block height, Erigon does not have an automatic rollback feature.
  • By configuring the truncate block height and restarting, new data streams can be quickly regenerated.

Test Result:

  • Configure zkevm.data-stream-truncate-blockany height and restart the sequencer to truncate and regenerate data stream.
  • Delete the RPC node's data completely, restart again and the syncing work as expected.

@cla-bot cla-bot bot added the cla-signed label Aug 21, 2024
@zjg555543 zjg555543 changed the title Truncate data stream while setup Node Truncate data stream while launching the Node Aug 21, 2024
@zjg555543 zjg555543 marked this pull request as draft August 22, 2024 03:31
@zjg555543 zjg555543 marked this pull request as ready for review August 22, 2024 07:34
Copy link

sonarcloud bot commented Aug 23, 2024

revitteth
revitteth previously approved these changes Sep 4, 2024
@zjg555543
Copy link
Author

Fixed the code conflicts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants