aboutsummaryrefslogtreecommitdiffstats
path: root/core/events.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-02-13 20:53:59 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-02-13 20:53:59 +0800
commitcb85923828d5ea45b53189b3b29ab014d9601f09 (patch)
tree6ced6a59dc3ac84db21ce8021ebc36cfe1f9d8fe /core/events.go
parent770b29fd80b8f25be31c2db5af6904cc5d0688ef (diff)
parent987c1a595a6a318ac83b68e3b87812497070bf9b (diff)
downloaddexon-cb85923828d5ea45b53189b3b29ab014d9601f09.tar
dexon-cb85923828d5ea45b53189b3b29ab014d9601f09.tar.gz
dexon-cb85923828d5ea45b53189b3b29ab014d9601f09.tar.bz2
dexon-cb85923828d5ea45b53189b3b29ab014d9601f09.tar.lz
dexon-cb85923828d5ea45b53189b3b29ab014d9601f09.tar.xz
dexon-cb85923828d5ea45b53189b3b29ab014d9601f09.tar.zst
dexon-cb85923828d5ea45b53189b3b29ab014d9601f09.zip
Merge pull request #2205 from obscuren/pending-filters
eth/filters: ✨ pending logs ✨
Diffstat (limited to 'core/events.go')
-rw-r--r--core/events.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/events.go b/core/events.go
index 1a760c71c..c23206cad 100644
--- a/core/events.go
+++ b/core/events.go
@@ -30,6 +30,11 @@ type TxPreEvent struct{ Tx *types.Transaction }
// TxPostEvent is posted when a transaction has been processed.
type TxPostEvent struct{ Tx *types.Transaction }
+// PendingLogsEvent is posted pre mining and notifies of pending logs.
+type PendingLogsEvent struct {
+ Logs vm.Logs
+}
+
// NewBlockEvent is posted when a block has been imported.
type NewBlockEvent struct{ Block *types.Block }
@@ -40,7 +45,7 @@ type NewMinedBlockEvent struct{ Block *types.Block }
type RemovedTransactionEvent struct{ Txs types.Transactions }
// RemovedLogEvent is posted when a reorg happens
-type RemovedLogEvent struct{ Logs vm.Logs }
+type RemovedLogsEvent struct{ Logs vm.Logs }
// ChainSplit is posted when a new head is detected
type ChainSplitEvent struct {