Skip to content

Latest commit

 

History

History
 
 

mpt-test

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

mpt-test

This tool aims to verify mainnet blocks for the MPT circuit.

Running tests

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.

Adding new blocks to prove

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

How can get an access list for other blocks?

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.