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

core: fix genesis setup in benchReadChain #28856

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

darioush
Copy link
Contributor

@darioush darioush commented Jan 23, 2024

Hi, currently the benchmarks BenchmarkChainRead_header_10k etc are failing with:

error creating chain: database contains incompatible genesis (have c27db71b33e259aa7357e6d44f8f1c78adbae50d5ac59d61103ec0f1ad109a3f, new d4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3

I made this change to call &core.Genesis{}.ToBlock().Header() to set-up the genesis header, since the amount of setup in the test is not sufficient to pass through the checks in SetupGenesisBlock
Alternatively, we could set the loop to start at 1 here for a less invasive change and similar effect, if you prefer.

@darioush darioush marked this pull request as ready for review January 23, 2024 02:52
Copy link
Member

@rjl493456442 rjl493456442 left a comment

Choose a reason for hiding this comment

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

Thank you.

@rjl493456442 rjl493456442 added this to the 1.13.11 milestone Jan 23, 2024
@rjl493456442 rjl493456442 merged commit 819a497 into ethereum:master Jan 23, 2024
3 checks passed
Dergarcon pushed a commit to specialmechanisms/mev-geth-0x2mev that referenced this pull request Jan 31, 2024
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