forked from mirror/go-ethereum
cmd/mist, ethchain, ethminer: split TxEvent (#165)
parent
5920aa7be6
commit
6b3f5fb82b
@ -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 } |
||||
|
Loading…
Reference in new issue