events.go 630 B

123456789101112131415161718
  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 }
  9. // NewMinedBlockEvent is posted when a block has been imported.
  10. type NewMinedBlockEvent struct{ Block *types.Block }
  11. // ChainSplit is posted when a new head is detected
  12. type ChainSplitEvent struct{ Block *types.Block }