aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/events.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <obscuren@users.noreply.github.com>2014-10-30 04:10:04 +0800
committerJeffrey Wilcke <obscuren@users.noreply.github.com>2014-10-30 04:10:04 +0800
commitfa890c8c0140dac1e02038a6134db0d83bb85af9 (patch)
tree806fb16adbbec3bcd3ff93b8dfbdcdb73290fabb /ethchain/events.go
parentce2ec1980bbc97fb9b2acc27c6249be1249fa44c (diff)
parent6b3f5fb82b0304f477a1c36b68b0d07232405aff (diff)
downloadgo-tangerine-fa890c8c0140dac1e02038a6134db0d83bb85af9.tar
go-tangerine-fa890c8c0140dac1e02038a6134db0d83bb85af9.tar.gz
go-tangerine-fa890c8c0140dac1e02038a6134db0d83bb85af9.tar.bz2
go-tangerine-fa890c8c0140dac1e02038a6134db0d83bb85af9.tar.lz
go-tangerine-fa890c8c0140dac1e02038a6134db0d83bb85af9.tar.xz
go-tangerine-fa890c8c0140dac1e02038a6134db0d83bb85af9.tar.zst
go-tangerine-fa890c8c0140dac1e02038a6134db0d83bb85af9.zip
Merge pull request #167 from fjl/feature/split-tx-event
Split TxEvent type for tx pre/post
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 }