diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-06-11 18:32:39 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-06-11 18:32:39 +0800 |
commit | 6609d45ef48ce1c2d2b0e73fa8fe5190d36e3920 (patch) | |
tree | 5cb56f1a9ce712178bd19886c389166562f6f328 /tests | |
parent | 13bd452fafae000b5b3d5769af5554de7c5f9779 (diff) | |
parent | 37111aa4bd215cfc8bcfb97cdc7e223649306196 (diff) | |
download | go-tangerine-6609d45ef48ce1c2d2b0e73fa8fe5190d36e3920.tar.gz go-tangerine-6609d45ef48ce1c2d2b0e73fa8fe5190d36e3920.tar.zst go-tangerine-6609d45ef48ce1c2d2b0e73fa8fe5190d36e3920.zip |
Merge pull request #1228 from obscuren/vm-optimisations
core/vm: optimisations
Diffstat (limited to 'tests')
-rw-r--r-- | tests/helper/vm.go | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/helper/vm.go b/tests/helper/vm.go index 2db2b82c4..e29a2d8ee 100644 --- a/tests/helper/vm.go +++ b/tests/helper/vm.go @@ -27,9 +27,8 @@ type Env struct { difficulty *big.Int gasLimit *big.Int - logs state.Logs - vmTest bool + logs []vm.StructLog } func NewEnv(state *state.StateDB) *Env { @@ -38,6 +37,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 { env := NewEnv(state) |