Moved execution from vm to chain.
This moves call and create to the specified environments. Vms are no longer re-used. Vm uses environment's Call(Code) and Create in order to execute new contracts or transfer value between accounts. State transition now uses the same mechanism described above.
Showing
- chain/execution.go 80 additions, 0 deletionschain/execution.go
- chain/state_transition.go 9 additions, 108 deletionschain/state_transition.go
- chain/vm_env.go 23 additions, 0 deletionschain/vm_env.go
- state/state_object.go 4 additions, 5 deletionsstate/state_object.go
- tests/helper/vm.go 56 additions, 14 deletionstests/helper/vm.go
- tests/vm/gh_test.go 2 additions, 138 deletionstests/vm/gh_test.go
- vm/closure.go 9 additions, 12 deletionsvm/closure.go
- vm/environment.go 7 additions, 4 deletionsvm/environment.go
- vm/virtual_machine.go 3 additions, 1 deletionvm/virtual_machine.go
- vm/vm.go 3 additions, 687 deletionsvm/vm.go
- vm/vm_debug.go 30 additions, 25 deletionsvm/vm_debug.go
Loading
Please register or sign in to comment