EVM Node: Add --replicate to run sandbox
This argument can be used to have a sandbox endpoint shadowing an existing
chain locally. This can be useful for a number of use cases, notably
interacting with the chain in a sandbox environment that reflects changes
happening on the network in real time, or evaluating the impact of a (future)
kernel on realistic traffic (using --kernel).
This was already useful to assert that D indeed address the gas price spikes we are seeing on Mainnet.
Manually testing the MR
octez-evm-node run sandbox --data-dir sandbox --init-from-snapshot --network mainnet --kernel /path/to/evm_kernel.wasm --replicate
This will start a Mainnet sandbox with the latest kernel, applying blueprints from the official relay. I was able to compare the gas price on various blocks and witness the gas price does not change with D
Checklist
-
Document the interface of any function added or modified (see the coding guidelines) -
Document any change to the user interface, including configuration parameters (see node configuration) -
Provide automatic testing (see the testing guide). -
For new features and bug fixes, add an item in the appropriate changelog ( docs/protocols/alpha.rstfor the protocol and the environment,CHANGES.rstat the root of the repository for everything else). -
Select suitable reviewers using the Reviewersfield below. -
Select as Assigneethe next person who should take action on that MR
Edited by Thomas Letan