diff options
author | obscuren <geffobscura@gmail.com> | 2014-10-30 20:32:50 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-10-30 20:32:50 +0800 |
commit | df5603de0a34e80a1af6ad03e37ce43728baad35 (patch) | |
tree | 5d9a71ad887c243b781b1c2d6077336bed82057b /ethchain/vm_env.go | |
parent | fa890c8c0140dac1e02038a6134db0d83bb85af9 (diff) | |
download | go-tangerine-df5603de0a34e80a1af6ad03e37ce43728baad35.tar go-tangerine-df5603de0a34e80a1af6ad03e37ce43728baad35.tar.gz go-tangerine-df5603de0a34e80a1af6ad03e37ce43728baad35.tar.bz2 go-tangerine-df5603de0a34e80a1af6ad03e37ce43728baad35.tar.lz go-tangerine-df5603de0a34e80a1af6ad03e37ce43728baad35.tar.xz go-tangerine-df5603de0a34e80a1af6ad03e37ce43728baad35.tar.zst go-tangerine-df5603de0a34e80a1af6ad03e37ce43728baad35.zip |
Moved logging to state, proper structured block
* Moved logs to state so it's subject to snapshotting
* Split up block header
* Removed logs from transactions and made them receipts only
Diffstat (limited to 'ethchain/vm_env.go')
-rw-r--r-- | ethchain/vm_env.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ethchain/vm_env.go b/ethchain/vm_env.go index 4dc96e8b1..1bb67dbd0 100644 --- a/ethchain/vm_env.go +++ b/ethchain/vm_env.go @@ -31,8 +31,8 @@ func (self *VMEnv) BlockHash() []byte { return self.block.Hash() } func (self *VMEnv) Value() *big.Int { return self.tx.Value } func (self *VMEnv) State() *ethstate.State { return self.state } func (self *VMEnv) GasLimit() *big.Int { return self.block.GasLimit } -func (self *VMEnv) AddLog(log vm.Log) { - self.tx.addLog(log) +func (self *VMEnv) AddLog(log ethstate.Log) { + self.state.AddLog(log) } func (self *VMEnv) Transfer(from, to vm.Account, amount *big.Int) error { return vm.Transfer(from, to, amount) |