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

Bonsai archive feature #7475

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

matthew1001
Copy link
Contributor

@matthew1001 matthew1001 commented Aug 16, 2024

PR description

WIP - bonsai archive DB format

Notes on work so far

  • Discord discussion: https://discord.com/channels/905194001349627914/1261348506648707133/1261348712047706243
  • Builds on PR Feature/multi version flat db #5865
  • Creates a new BONSAI_ARCHIVE DB mode, which can be chosen as an alternative to FOREST or BONSAI
  • Introduces a new DB segment ACCOUNT_FREEZER_STATE to move old ACCOUNT_INFO_STATE keys to once they are beyond a certain number of blocks old. If this is the right approach then similar DB segments for CODE_STORAGE and ACCOUNT_STORAGE_STORAGE will also be needed. (Name of the new segment may not be quite right yet)
    • Currently defaults/hard-coded to moving modified account state once it is 10 blocks old. Needs to be made configurable
  • Several TODOs are dotted around the code
  • Haven't implemented checkpointing yet for rebuilding the state trie from periodic checkpoints
  • Lots of tests to write. Will also update the bftMiningSoakTest to run some BONSAI and BONSAI_ARCHIVE nodes as part of the test

jframe and others added 6 commits August 20, 2024 10:58
Signed-off-by: Jason Frame <[email protected]>
…se constructor that reuses worldStateStorage so that we don't lose values in the EvmToolSpecTests

Signed-off-by: Jason Frame <[email protected]>
Signed-off-by: Matthew Whitehead <[email protected]>
…d state, and freeze it

Signed-off-by: Matthew Whitehead <[email protected]>
Signed-off-by: Matthew Whitehead <[email protected]>
…ten for blocks and move account state to new DB segment

Signed-off-by: Matthew Whitehead <[email protected]>
@matthew1001 matthew1001 changed the title Multi version flat db rebase Bonsai archive feature Sep 4, 2024
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.

2 participants