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 new endpoint zkevm_getNativeBlockHashesInRange #2661

Merged
merged 5 commits into from
Oct 19, 2023

Conversation

tclemos
Copy link
Contributor

@tclemos tclemos commented Oct 14, 2023

Closes #2651.

What does this PR do?

add new endpoint zkevm_getNativeBlockHashesInRange to return the native block hashes (a.k.a state root)

MaxNativeBlockHashBlockRange is a configuration to set the max range for block number when querying native block hashes in a single call to the state, if zero it means no limit

Default Values:

[RPC]
MaxNativeBlockHashBlockRange = 60000

@tclemos tclemos added the config label Oct 14, 2023
@tclemos tclemos added this to the v0.5.0 milestone Oct 14, 2023
@tclemos tclemos self-assigned this Oct 14, 2023
@cla-bot cla-bot bot added the cla-signed label Oct 14, 2023
@tclemos tclemos modified the milestones: v0.5.0, v0.4.0 Oct 16, 2023
@tclemos tclemos marked this pull request as ready for review October 16, 2023 17:31
state/pgstatestorage.go Outdated Show resolved Hide resolved
@tclemos tclemos merged commit f8111b3 into develop Oct 19, 2023
18 checks passed
@tclemos tclemos deleted the feature/native-block-hash branch October 19, 2023 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

new endpoint zkevm_getNativeBlockHashesInRange
2 participants