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

Implement compaction #33

Open
yanliu38 opened this issue Oct 25, 2024 · 0 comments
Open

Implement compaction #33

yanliu38 opened this issue Oct 25, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@yanliu38
Copy link
Member

It could be useful to implement compaction of the ledger map.
One way to implement this could be:

  • take the block bottom-most (oldest) block from the ledger map and extract the valid entries
  • push all still valid entries from the bottom-most block into the ledger map, which will add them into the newest block
  • at this point the bottom-most block is completely invalidated and can be removed
  • the ledger map metadata now needs to be updated to indicate that the ledger map starts from the block after the bottom most
@yanliu38 yanliu38 added the enhancement New feature or request label Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant