mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-25 12:57:17 +00:00
99853ac3ce
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.
12 lines
265 B
Go
12 lines
265 B
Go
package vm
|
|
|
|
import "math/big"
|
|
|
|
type VirtualMachine interface {
|
|
Env() Environment
|
|
Run(me, caller ClosureRef, code []byte, value, gas, price *big.Int, data []byte) ([]byte, error)
|
|
Depth() int
|
|
Printf(string, ...interface{}) VirtualMachine
|
|
Endl() VirtualMachine
|
|
}
|