events.go 409 B

123456789101112
  1. package core
  2. import "github.com/ethereum/go-ethereum/core/types"
  3. // TxPreEvent is posted when a transaction enters the transaction pool.
  4. type TxPreEvent struct{ Tx *types.Transaction }
  5. // TxPostEvent is posted when a transaction has been processed.
  6. type TxPostEvent struct{ Tx *types.Transaction }
  7. // NewBlockEvent is posted when a block has been imported.
  8. type NewBlockEvent struct{ Block *types.Block }