aboutsummaryrefslogtreecommitdiffstats
path: root/core/events.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <geffobscura@gmail.com>2015-12-01 07:11:24 +0800
committerJeffrey Wilcke <geffobscura@gmail.com>2015-12-01 19:12:30 +0800
commit9901a40f047f55d1a756805bdeed3997d071c3d1 (patch)
tree07f07607ab2647f200b2ac17d0cbc3136e68a03f /core/events.go
parent7dde2b902cf81e90b484b1a48f6d45e0abd10e0f (diff)
downloadgo-tangerine-9901a40f047f55d1a756805bdeed3997d071c3d1.tar
go-tangerine-9901a40f047f55d1a756805bdeed3997d071c3d1.tar.gz
go-tangerine-9901a40f047f55d1a756805bdeed3997d071c3d1.tar.bz2
go-tangerine-9901a40f047f55d1a756805bdeed3997d071c3d1.tar.lz
go-tangerine-9901a40f047f55d1a756805bdeed3997d071c3d1.tar.xz
go-tangerine-9901a40f047f55d1a756805bdeed3997d071c3d1.tar.zst
go-tangerine-9901a40f047f55d1a756805bdeed3997d071c3d1.zip
core: added a new RemovedLogEvent
When a chain reorganisation occurs we collect the logs that were deleted during the chain reorganisation. The removed logs are posted to the event mux indicating that those were deleted during the reorg.
Diffstat (limited to 'core/events.go')
-rw-r--r--core/events.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/events.go b/core/events.go
index 8cf230dda..1a760c71c 100644
--- a/core/events.go
+++ b/core/events.go
@@ -39,6 +39,9 @@ type NewMinedBlockEvent struct{ Block *types.Block }
// RemovedTransactionEvent is posted when a reorg happens
type RemovedTransactionEvent struct{ Txs types.Transactions }
+// RemovedLogEvent is posted when a reorg happens
+type RemovedLogEvent struct{ Logs vm.Logs }
+
// ChainSplit is posted when a new head is detected
type ChainSplitEvent struct {
Block *types.Block