diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-19 23:59:13 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-19 23:59:13 +0800 |
commit | b5a71d955cacec0c8f81fbcf36b6f3d6d60b4bb1 (patch) | |
tree | 9d94b69006029e91d7cdf2d0eb9d6d457d238671 /core/events.go | |
parent | ce063e8d9c2d26dd283a43b097903628225179ea (diff) | |
parent | e540a75030de611ca8cf0a70621421b6aa3fbebf (diff) | |
download | go-tangerine-b5a71d955cacec0c8f81fbcf36b6f3d6d60b4bb1.tar go-tangerine-b5a71d955cacec0c8f81fbcf36b6f3d6d60b4bb1.tar.gz go-tangerine-b5a71d955cacec0c8f81fbcf36b6f3d6d60b4bb1.tar.bz2 go-tangerine-b5a71d955cacec0c8f81fbcf36b6f3d6d60b4bb1.tar.lz go-tangerine-b5a71d955cacec0c8f81fbcf36b6f3d6d60b4bb1.tar.xz go-tangerine-b5a71d955cacec0c8f81fbcf36b6f3d6d60b4bb1.tar.zst go-tangerine-b5a71d955cacec0c8f81fbcf36b6f3d6d60b4bb1.zip |
merge
Diffstat (limited to 'core/events.go')
-rw-r--r-- | core/events.go | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/core/events.go b/core/events.go index 23678ef60..8c5fb592a 100644 --- a/core/events.go +++ b/core/events.go @@ -1,6 +1,9 @@ package core -import "github.com/ethereum/go-ethereum/core/types" +import ( + "github.com/ethereum/go-ethereum/core/types" + "github.com/ethereum/go-ethereum/state" +) // TxPreEvent is posted when a transaction enters the transaction pool. type TxPreEvent struct{ Tx *types.Transaction } @@ -15,11 +18,25 @@ type NewBlockEvent struct{ Block *types.Block } type NewMinedBlockEvent struct{ Block *types.Block } // ChainSplit is posted when a new head is detected -type ChainSplitEvent struct{ Block *types.Block } - -type ChainEvent struct{ Block *types.Block } - -type ChainSideEvent struct{ Block *types.Block } +type ChainSplitEvent struct { + Block *types.Block + Logs state.Logs +} + +type ChainEvent struct { + Block *types.Block + Logs state.Logs +} + +type ChainSideEvent struct { + Block *types.Block + Logs state.Logs +} + +type PendingBlockEvent struct { + Block *types.Block + Logs state.Logs +} type ChainHeadEvent struct{ Block *types.Block } |