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

Add eip2935 256th ancestor stem to witness #355

Merged
merged 2 commits into from
Feb 2, 2024

Conversation

gballet
Copy link
Owner

@gballet gballet commented Jan 31, 2024

Adding this stem is necessary for the stateless execution to be able to determine if the block height is at least 256 blocks past the fork block, and therefore if it needs to activate.

@gballet gballet requested a review from jsign January 31, 2024 09:57
@gballet gballet added this to the verkle-gen-devnet-3 milestone Jan 31, 2024
Copy link
Collaborator

@jsign jsign left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +371 to +372
index, suffix := utils.GetTreeKeyStorageSlotTreeIndexes(key[:])
statedb.Witness().TouchAddressOnWriteAndComputeGas(params.HistoryStorageAddress[:], *index, suffix)
Copy link
Collaborator

@jsign jsign Jan 31, 2024

Choose a reason for hiding this comment

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

Makes sense. At some point I wonder if it would be better to tie access witness recording with statedb methods that read/write the state.

It's just an idea, so this kind of miss are avoided.

Copy link
Owner Author

Choose a reason for hiding this comment

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

yeah it's something I've wanted to do for a long time. I tried once in the past but it was buggy and I had other priorities. I would wait for the shadowfork + rebase to do that, but it would be a pretty good thing.

core/state_processor_test.go Outdated Show resolved Hide resolved
@gballet gballet merged commit 28ec376 into kaustinen-with-shapella Feb 2, 2024
2 of 3 checks passed
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