aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm_env.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-02-01 22:30:29 +0800
committerobscuren <geffobscura@gmail.com>2015-02-01 22:30:29 +0800
commit8ccde784f9035c0a7a8f234994538c817c5b9de7 (patch)
tree6fc252d3372510abda8fd16297caca481b5beeae /core/vm_env.go
parentd52878c744fd7acce727feb41c2d4296e56826d3 (diff)
downloadgo-tangerine-8ccde784f9035c0a7a8f234994538c817c5b9de7.tar.gz
go-tangerine-8ccde784f9035c0a7a8f234994538c817c5b9de7.tar.zst
go-tangerine-8ccde784f9035c0a7a8f234994538c817c5b9de7.zip
Added (disabled) Jit validation
Diffstat (limited to 'core/vm_env.go')
-rw-r--r--core/vm_env.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/vm_env.go b/core/vm_env.go
index 624a63333..c7491bcdc 100644
--- a/core/vm_env.go
+++ b/core/vm_env.go
@@ -14,6 +14,7 @@ type VMEnv struct {
msg Message
depth int
chain *ChainManager
+ typ vm.Type
}
func NewEnv(state *state.StateDB, chain *ChainManager, msg Message, block *types.Block) *VMEnv {
@@ -22,6 +23,7 @@ func NewEnv(state *state.StateDB, chain *ChainManager, msg Message, block *types
state: state,
block: block,
msg: msg,
+ typ: vm.StdVmTy,
}
}
@@ -35,6 +37,8 @@ func (self *VMEnv) Value() *big.Int { return self.msg.Value() }
func (self *VMEnv) State() *state.StateDB { return self.state }
func (self *VMEnv) Depth() int { return self.depth }
func (self *VMEnv) SetDepth(i int) { self.depth = i }
+func (self *VMEnv) VmType() vm.Type { return self.typ }
+func (self *VMEnv) SetVmType(t vm.Type) { self.typ = t }
func (self *VMEnv) GetHash(n uint64) []byte {
if block := self.chain.GetBlockByNumber(n); block != nil {
return block.Hash()