mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-13 05:44:40 +00:00
c6d50a0ef7
New entry point `runComputation`, for all EVM calls. (Later the intent is `runComputationAsync`.) As noted in commit 297d789, there are six entry points calling EVM computation, with different parameters and expecting different behaviours. Parameters were dealt with in `setupComputation`. Behaviours are unified in `runComputation`, with options passed via `CallParams`. This code performs the steps used when validating a transaction. Options for non-standard behaviour for RPC, GraphQL and tests to be added as required. This replaces `setupComputation`, `execComputation` and `executeOpcodes` (other than its own calls). As a result `Computation` and other EVM types are no longer referenced in the main program, and many imports can be dropped. Signed-off-by: Jamie Lokier <jamie@shareable.org>