aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm/instructions.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <geffobscura@gmail.com>2016-01-21 22:29:58 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2016-03-23 07:04:00 +0800
commit342ae7ce7dfd7a0eab2dd06bfa65199825279f05 (patch)
tree4d90314e50e137bcd8ee837cbb396fee40e2bb4b /core/vm/instructions.go
parent2855a93ede6e9437d05a82c2397d48744621db9b (diff)
downloaddexon-342ae7ce7dfd7a0eab2dd06bfa65199825279f05.tar
dexon-342ae7ce7dfd7a0eab2dd06bfa65199825279f05.tar.gz
dexon-342ae7ce7dfd7a0eab2dd06bfa65199825279f05.tar.bz2
dexon-342ae7ce7dfd7a0eab2dd06bfa65199825279f05.tar.lz
dexon-342ae7ce7dfd7a0eab2dd06bfa65199825279f05.tar.xz
dexon-342ae7ce7dfd7a0eab2dd06bfa65199825279f05.tar.zst
dexon-342ae7ce7dfd7a0eab2dd06bfa65199825279f05.zip
core, core/vm, tests: changed the initialisation behaviour of the EVM
The EVM was previously initialised and created for every CALL, CALLCODE, DELEGATECALL and CREATE. This PR changes this behaviour so that the same EVM can be used through the session and beyond as long as the Environment sticks around.
Diffstat (limited to 'core/vm/instructions.go')
-rw-r--r--core/vm/instructions.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/core/vm/instructions.go b/core/vm/instructions.go
index 1e1086b13..c4b4339a2 100644
--- a/core/vm/instructions.go
+++ b/core/vm/instructions.go
@@ -597,7 +597,6 @@ func opDelegateCall(instr instruction, pc *uint64, env Environment, contract *Co
toAddr := common.BigToAddress(to)
args := memory.Get(inOffset.Int64(), inSize.Int64())
ret, err := env.DelegateCall(contract, toAddr, args, gas, contract.Price)
-
if err != nil {
stack.push(new(big.Int))
} else {