This tool aims to verify mainnet blocks for the MPT circuit.
Just run ./test_mainnet_blocks.sh
NOTE: this run the tests with keccak testing disabled, because it takes SO MUCH to test with keccaks enables. If you want to run them with keccak, just run cargo run --release --no-default-features
.
In order to add more blocks to prove you have to:
- Add new entry in the
access-lists
folder - Set the environment variable
WEB3_SERVICE_PROVIDER
to a mainnet JSON-RPC provider - Run the tests again
- You will have to upload the cache file again (web3_rpc_cache.bin) and update the
test_mainnet_blocks.sh
file
There's a modified version of geth that tracks access lists and allows to retrieve them via RPC eth_accessListByNumber call, so you can deploy this version and grab some access lists there.
Note: of course this is just a method for testing , do not use in production.