EVM/Node: eth_call state override
What
Add state override feature to eth_call. Only for fields balance, nonce, code first.
see go-ethereum doc for spec.
Why
see #7476 (closed)
Some partners need it.
The rest of state override (fields state and statediff) are follow up, as the encoding is less defined and clear.
How
We modify the input parsing and the simulator backend. Depending on the backend's representation of the state, we apply the override. When we can't (ie rpc backend, proxy) the state override is completely ignored.
Manually testing the MR
dune exec etherlink/tezt/tests/main.exe -- --file evm_sequencer.ml state_override alpha /dal /threshold_encryption
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 Pierre-Emmanuel CORNILLEAU