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

Historical blocks & receipts automated cleaner #7943

Open
MarekM25 opened this issue Dec 20, 2024 · 0 comments
Open

Historical blocks & receipts automated cleaner #7943

MarekM25 opened this issue Dec 20, 2024 · 0 comments

Comments

@MarekM25
Copy link
Contributor

There are several reasons to implement automated removal of historical blocks/receipts:

  1. After dropping pre-merge history, users should be able to seamlessly reduce storage requirements without the need to resync the node.
  2. During a full sync from genesis, if we are only interested in the last X amount of history, we should be able to drop anything older than X.
  3. When a sliding window is introduced with EIP-4444, we should have the ability to easily drop history.

The key consideration is that dropping history should not interfere with current block processing.

Two possible solutions to achieve this are:

  1. Drop X items with every new payload.
  2. Start saving new blocks/receipts to a separate database and remove the entire database at a designated point in time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant