diff options
author | obscuren <geffobscura@gmail.com> | 2014-10-27 18:44:16 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-10-27 18:44:16 +0800 |
commit | 272d58662c885ab1cef8930e96fb832ae5377d96 (patch) | |
tree | e040eaec5c7e895dd6aaadedbbe30054aaa5e805 /ethchain/state_transition.go | |
parent | 6623500c6b2e5fe9fa41a1ce75269955af6026e8 (diff) | |
download | go-tangerine-272d58662c885ab1cef8930e96fb832ae5377d96.tar go-tangerine-272d58662c885ab1cef8930e96fb832ae5377d96.tar.gz go-tangerine-272d58662c885ab1cef8930e96fb832ae5377d96.tar.bz2 go-tangerine-272d58662c885ab1cef8930e96fb832ae5377d96.tar.lz go-tangerine-272d58662c885ab1cef8930e96fb832ae5377d96.tar.xz go-tangerine-272d58662c885ab1cef8930e96fb832ae5377d96.tar.zst go-tangerine-272d58662c885ab1cef8930e96fb832ae5377d96.zip |
Implemented LOG. Closes #159
Diffstat (limited to 'ethchain/state_transition.go')
-rw-r--r-- | ethchain/state_transition.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ethchain/state_transition.go b/ethchain/state_transition.go index 1274915d5..542b7be13 100644 --- a/ethchain/state_transition.go +++ b/ethchain/state_transition.go @@ -237,6 +237,12 @@ func (self *StateTransition) TransitionState() (err error) { } msg.Output = ret + } else { + // Add default LOG + // PUSH1 1 CALLER ADD LOG1 + addr := ethutil.BigD(sender.Address()) + addr.Add(addr, ethutil.Big1) + tx.addLog(vm.Log{sender.Address(), []*big.Int{addr}, nil}) } } |