aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/events.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2014-10-29 10:50:20 +0800
committerFelix Lange <fjl@twurst.com>2014-10-29 10:50:20 +0800
commit6b3f5fb82b0304f477a1c36b68b0d07232405aff (patch)
treea0d52b610b2876fcbcce8bb00e84ba81799d568d /ethchain/events.go
parent5920aa7be6fb973c7cbae34c9d4af03665933c51 (diff)
downloaddexon-6b3f5fb82b0304f477a1c36b68b0d07232405aff.tar
dexon-6b3f5fb82b0304f477a1c36b68b0d07232405aff.tar.gz
dexon-6b3f5fb82b0304f477a1c36b68b0d07232405aff.tar.bz2
dexon-6b3f5fb82b0304f477a1c36b68b0d07232405aff.tar.lz
dexon-6b3f5fb82b0304f477a1c36b68b0d07232405aff.tar.xz
dexon-6b3f5fb82b0304f477a1c36b68b0d07232405aff.tar.zst
dexon-6b3f5fb82b0304f477a1c36b68b0d07232405aff.zip
cmd/mist, ethchain, ethminer: split TxEvent (#165)
Diffstat (limited to 'ethchain/events.go')
-rw-r--r--ethchain/events.go14
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 }