core, core/vm: implemented a generic environment (#3348)
Environment is now a struct (not an interface). This reduces a lot of tech-debt throughout the codebase where a virtual machine environment had to be implemented in order to test or run it. The new environment is suitable to be used en the json tests, core consensus and light client.
Showing
- accounts/abi/bind/backends/simulated.go 5 additions, 1 deletionaccounts/abi/bind/backends/simulated.go
- cmd/evm/main.go 25 additions, 114 deletionscmd/evm/main.go
- core/evm.go 73 additions, 0 deletionscore/evm.go
- core/execution.go 0 additions, 217 deletionscore/execution.go
- core/state/state_object.go 1 addition, 1 deletioncore/state/state_object.go
- core/state/statedb.go 9 additions, 0 deletionscore/state/statedb.go
- core/state_processor.go 15 additions, 7 deletionscore/state_processor.go
- core/state_transition.go 24 additions, 27 deletionscore/state_transition.go
- core/vm/contract.go 5 additions, 8 deletionscore/vm/contract.go
- core/vm/environment.go 276 additions, 87 deletionscore/vm/environment.go
- core/vm/errors.go 7 additions, 4 deletionscore/vm/errors.go
- core/vm/instructions.go 101 additions, 101 deletionscore/vm/instructions.go
- core/vm/interface.go 97 additions, 0 deletionscore/vm/interface.go
- core/vm/jit.go 9 additions, 9 deletionscore/vm/jit.go
- core/vm/jit_test.go 6 additions, 60 deletionscore/vm/jit_test.go
- core/vm/logger.go 4 additions, 4 deletionscore/vm/logger.go
- core/vm/logger_test.go 12 additions, 17 deletionscore/vm/logger_test.go
- core/vm/noop.go 68 additions, 0 deletionscore/vm/noop.go
- core/vm/runtime/env.go 14 additions, 84 deletionscore/vm/runtime/env.go
- core/vm/runtime/runtime.go 27 additions, 2 deletionscore/vm/runtime/runtime.go
Loading
Please register or sign in to comment