aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/vm.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-06-12 17:19:32 +0800
committerobscuren <geffobscura@gmail.com>2014-06-12 17:19:32 +0800
commitb855e5f7df194c84651d7cc7ee32d307a2fa0a2e (patch)
treee4a87b6d81fb7c01963713cb1cc647d1327eca16 /ethchain/vm.go
parent6593c6942454233f61d7d74f030a9075a84807cd (diff)
downloadgo-tangerine-b855e5f7df194c84651d7cc7ee32d307a2fa0a2e.tar.gz
go-tangerine-b855e5f7df194c84651d7cc7ee32d307a2fa0a2e.tar.zst
go-tangerine-b855e5f7df194c84651d7cc7ee32d307a2fa0a2e.zip
Changed opcode numbers and added missing opcodes
Diffstat (limited to 'ethchain/vm.go')
-rw-r--r--ethchain/vm.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/ethchain/vm.go b/ethchain/vm.go
index 955be847f..ebdc58659 100644
--- a/ethchain/vm.go
+++ b/ethchain/vm.go
@@ -337,6 +337,9 @@ func (vm *Vm) RunClosure(closure *Closure, hook DebugHook) (ret []byte, err erro
stack.Push(ethutil.BigD(data))
case CALLDATASIZE:
stack.Push(big.NewInt(int64(len(closure.Args))))
+ case CALLDATACOPY:
+ case CODESIZE:
+ case CODECOPY:
case GASPRICE:
stack.Push(closure.Price)
@@ -423,6 +426,8 @@ func (vm *Vm) RunClosure(closure *Closure, hook DebugHook) (ret []byte, err erro
stack.Push(pc)
case MSIZE:
stack.Push(big.NewInt(int64(mem.Len())))
+ case GAS:
+ stack.Push(closure.Gas)
// 0x60 range
case CREATE:
require(3)