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

Rework block index #511

Open
acolytec3 opened this issue Nov 9, 2023 · 0 comments
Open

Rework block index #511

acolytec3 opened this issue Nov 9, 2023 · 0 comments

Comments

@acolytec3
Copy link
Collaborator

We recently added a blockIndex that maps block number to blockhash so that the state network can retrieve state from a given block height without needing to have the Epoch Accumulator for whichever epoch the block is associated with in order to find the corresponding state root necessary to retrieve the state data. At present, it's a little cumbersome and should either be reworked to be an in memory map of block numbers to block hashes that is only stored in the DB on node close or else converted to a sublevel db on its own that is effectively just a block number -> blockhash key-value map stored on disk.

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

No branches or pull requests

1 participant