diff options
author | Felix Lange <fjl@twurst.com> | 2014-10-29 10:50:20 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2014-10-29 10:50:20 +0800 |
commit | 6b3f5fb82b0304f477a1c36b68b0d07232405aff (patch) | |
tree | a0d52b610b2876fcbcce8bb00e84ba81799d568d /ethchain/events.go | |
parent | 5920aa7be6fb973c7cbae34c9d4af03665933c51 (diff) | |
download | go-tangerine-6b3f5fb82b0304f477a1c36b68b0d07232405aff.tar.gz go-tangerine-6b3f5fb82b0304f477a1c36b68b0d07232405aff.tar.zst go-tangerine-6b3f5fb82b0304f477a1c36b68b0d07232405aff.zip |
cmd/mist, ethchain, ethminer: split TxEvent (#165)
Diffstat (limited to 'ethchain/events.go')
-rw-r--r-- | ethchain/events.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ethchain/events.go b/ethchain/events.go index 05c21edfe..304e741b7 100644 --- a/ethchain/events.go +++ b/ethchain/events.go @@ -1,10 +1,10 @@ package ethchain -type TxEvent struct { - Type int // TxPre || TxPost - Tx *Transaction -} +// TxPreEvent is posted when a transaction enters the transaction pool. +type TxPreEvent struct{ Tx *Transaction } -type NewBlockEvent struct { - Block *Block -} +// TxPostEvent is posted when a transaction has been processed. +type TxPostEvent struct{ Tx *Transaction } + +// NewBlockEvent is posted when a block has been imported. +type NewBlockEvent struct{ Block *Block } |