Add lost rebase changes

This commit is contained in:
Taylor Gerring 2015-06-11 13:33:58 -04:00
parent c941a39b75
commit 30444db020
1 changed files with 9 additions and 1 deletions

View File

@ -124,7 +124,7 @@ type Env struct {
difficulty *big.Int difficulty *big.Int
gasLimit *big.Int gasLimit *big.Int
logs state.Logs logs []vm.StructLog
vmTest bool vmTest bool
} }
@ -135,6 +135,14 @@ func NewEnv(state *state.StateDB) *Env {
} }
} }
func (self *Env) StructLogs() []vm.StructLog {
return self.logs
}
func (self *Env) AddStructLog(log vm.StructLog) {
self.logs = append(self.logs, log)
}
func NewEnvFromMap(state *state.StateDB, envValues map[string]string, exeValues map[string]string) *Env { func NewEnvFromMap(state *state.StateDB, envValues map[string]string, exeValues map[string]string) *Env {
env := NewEnv(state) env := NewEnv(state)