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

feat: add parent blockstate to blockstate #9755

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Jul 24, 2024

ref #9614

This transforms the BlockState type into a linked list that references the parent block, this way we can trace the chain back to the block that is supposed to be on disk.

updating this from the tree pov would also be simple, because we only need to insert a new entry per block and pop the persisted blocks from the in memory list so that the other blocks now point to a higher block on disk

@mattsse mattsse requested a review from gakonst as a code owner July 24, 2024 10:26
@mattsse mattsse added the C-enhancement New feature or request label Jul 24, 2024
Copy link
Member

@fgimenez fgimenez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@mattsse mattsse added this pull request to the merge queue Jul 24, 2024
Merged via the queue into main with commit fa1bbe4 Jul 24, 2024
33 checks passed
@mattsse mattsse deleted the matt/add-parent-state-to-blockstate branch July 24, 2024 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants