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
Complete optimism mainnet forkid tests #8012
Comments
Note: I just added a very basic, non-comprehensive test for this. The test now just needs to be completed with the other forks! |
I'd like to work on this |
Where can I find the block numbers for the forks? Found timestamps here: By knowing the block number I can find the Bedrock upgrade |
yes, those should be correct, also take a look at the |
I can only see the timestamps and not the blocks in the chainspec reth/crates/primitives/src/chain/spec.rs Lines 297 to 300 in 3d28a69
Also, do you want forkid tests for all hardforks or just Canyon, Delta and Ecotone? |
some hardforks are only conditioned on the timestamp and not the block number which is why some of them do not have a block number:) |
I've added the forks as test cases, but I'm stuck on computing Computed fork ID is not computed correctly for Canyon and Delta:
|
Is the forkhash supposed to be 00000000, do you have a source on that? That sounds incorrect |
left some comments in reviews, let's move there |
We have a comprehensive set of tests for the mainnet and testnet forkids, including some optimism network tests:
reth/crates/primitives/src/chain/spec.rs
Lines 2443 to 2472 in 3d28a69
We should also add these for optimism mainnet, so we have forkid tests for all of the optimism networks covered.
The text was updated successfully, but these errors were encountered: