diff options
author | Jeffrey Wilcke <geffobscura@gmail.com> | 2016-02-13 08:40:44 +0800 |
---|---|---|
committer | Jeffrey Wilcke <geffobscura@gmail.com> | 2016-02-13 20:14:02 +0800 |
commit | 987c1a595a6a318ac83b68e3b87812497070bf9b (patch) | |
tree | 30859d085d7533c7ad610eed8a186f88724eadfe /core/events.go | |
parent | b05e472c076d30035233d6a8b5fb3360b236e3ff (diff) | |
download | go-tangerine-987c1a595a6a318ac83b68e3b87812497070bf9b.tar go-tangerine-987c1a595a6a318ac83b68e3b87812497070bf9b.tar.gz go-tangerine-987c1a595a6a318ac83b68e3b87812497070bf9b.tar.bz2 go-tangerine-987c1a595a6a318ac83b68e3b87812497070bf9b.tar.lz go-tangerine-987c1a595a6a318ac83b68e3b87812497070bf9b.tar.xz go-tangerine-987c1a595a6a318ac83b68e3b87812497070bf9b.tar.zst go-tangerine-987c1a595a6a318ac83b68e3b87812497070bf9b.zip |
eth/filters: ✨ pending logs ✨
Pending logs are now filterable through the Go API. Filter API changed
such that each filter type has it's own bucket and adding filter
explicitly requires you specify the bucket to put it in.
Diffstat (limited to 'core/events.go')
-rw-r--r-- | core/events.go | 7 |
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 { |