Skip to content

Conversation

@darioush
Copy link

No description provided.

@darioush
Copy link
Author

NOTE: for the journaling to work correctly, we must guarantee the head state (last written) is returned from Snapshot() or otherwise used to determine the head of the journal.

Alternatively we can change Journal to take the block Hash (seems better)

}

func (t *Tree) byRoot(blockRoot common.Hash) snapshot {
for _, snap := range t.layers {
Copy link
Author

Choose a reason for hiding this comment

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

we could make a fast lookup with this in a new map

@ARR4N
Copy link
Collaborator

ARR4N commented Jan 13, 2025

Doing a PR cleanup; made unnecessary by #77

@ARR4N ARR4N closed this Jan 13, 2025
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.

3 participants