events.go 854 B

12345678910111213141516171819202122232425262728
  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 }
  13. type ChainEvent struct{ Block *types.Block }
  14. type ChainSideEvent struct{ Block *types.Block }
  15. type ChainHeadEvent struct{ Block *types.Block }
  16. // Mining operation events
  17. type StartMining struct{}
  18. type TopMining struct{}