Removed some VMEnv & Added VmType() to vm.Environment

This commit is contained in:
obscuren
2015-02-01 15:29:57 +01:00
parent 0d97c3ce13
commit d52878c744
6 changed files with 25 additions and 184 deletions

View File

@ -59,6 +59,7 @@ func (self *Env) Time() int64 { return self.time }
func (self *Env) Difficulty() *big.Int { return self.difficulty }
func (self *Env) State() *state.StateDB { return self.state }
func (self *Env) GasLimit() *big.Int { return self.gasLimit }
func (self *Env) VmType() vm.Type { return vm.StdVmTy }
func (self *Env) GetHash(n uint64) []byte {
return crypto.Sha3([]byte(big.NewInt(int64(n)).String()))
}