aboutsummaryrefslogtreecommitdiffstats
path: root/core/events.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-19 23:19:54 +0800
committerobscuren <geffobscura@gmail.com>2015-03-19 23:19:54 +0800
commit14a2f42f3700640f191e0095b50a266d2a919b38 (patch)
treee22528f68c7bdab57a8cdfbcddc29df06c15457a /core/events.go
parentb52807f0c0ff1b89cc1d7172ce1b768a34d02b00 (diff)
downloadgo-tangerine-14a2f42f3700640f191e0095b50a266d2a919b38.tar
go-tangerine-14a2f42f3700640f191e0095b50a266d2a919b38.tar.gz
go-tangerine-14a2f42f3700640f191e0095b50a266d2a919b38.tar.bz2
go-tangerine-14a2f42f3700640f191e0095b50a266d2a919b38.tar.lz
go-tangerine-14a2f42f3700640f191e0095b50a266d2a919b38.tar.xz
go-tangerine-14a2f42f3700640f191e0095b50a266d2a919b38.tar.zst
go-tangerine-14a2f42f3700640f191e0095b50a266d2a919b38.zip
fixed chain event. Closes #529
Diffstat (limited to 'core/events.go')
-rw-r--r--core/events.go29
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 }