diff options
author | obscuren <geffobscura@gmail.com> | 2014-10-14 17:48:52 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-10-14 17:48:52 +0800 |
commit | c5bd32b0ad1a3d0fd20a3d1014cc8a97d889dc28 (patch) | |
tree | 5588276a932ac88daaaf9ca1858106ba3ff007b1 /ethpipe | |
parent | 2e894b668a2bde3eb83418cfd9128f3a571e0026 (diff) | |
download | go-tangerine-c5bd32b0ad1a3d0fd20a3d1014cc8a97d889dc28.tar.gz go-tangerine-c5bd32b0ad1a3d0fd20a3d1014cc8a97d889dc28.tar.zst go-tangerine-c5bd32b0ad1a3d0fd20a3d1014cc8a97d889dc28.zip |
Refactored VM to two separate VMs; std & debug
Standard VM should be about 10x faster than the debug VM. Some error
checking has been removed, all of the log statements and therefor quite
some unnecessary if-statements.
Diffstat (limited to 'ethpipe')
-rw-r--r-- | ethpipe/pipe.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ethpipe/pipe.go b/ethpipe/pipe.go index 1e1a2b835..39ee0ef07 100644 --- a/ethpipe/pipe.go +++ b/ethpipe/pipe.go @@ -58,8 +58,7 @@ func (self *Pipe) ExecuteObject(object *Object, data []byte, value, gas, price * self.Vm.State = self.World().State().Copy() - vm := ethvm.New(NewEnv(self.Vm.State, block, value.BigInt(), initiator.Address())) - vm.Verbose = true + vm := ethvm.New(NewEnv(self.Vm.State, block, value.BigInt(), initiator.Address()), ethvm.Type(ethutil.Config.VmType)) msg := ethvm.NewExecution(vm, object.Address(), data, gas.BigInt(), price.BigInt(), value.BigInt()) ret, err := msg.Exec(object.Address(), initiator) |