github.com/arieschain/arieschain@v0.0.0-20191023063405-37c074544356/core/events.go (about) 1 package core 2 3 import ( 4 "github.com/quickchainproject/quickchain/common" 5 "github.com/quickchainproject/quickchain/core/types" 6 ) 7 8 // TxPreEvent is posted when a transaction enters the transaction pool. 9 type TxPreEvent struct{ Tx *types.Transaction } 10 11 // PendingLogsEvent is posted pre mining and notifies of pending logs. 12 type PendingLogsEvent struct { 13 Logs []*types.Log 14 } 15 16 // PendingStateEvent is posted pre mining and notifies of pending state changes. 17 type PendingStateEvent struct{} 18 19 // NewMinedBlockEvent is posted when a block has been imported. 20 type NewMinedBlockEvent struct{ Block *types.Block } 21 22 // RemovedTransactionEvent is posted when a reorg happens 23 type RemovedTransactionEvent struct{ Txs types.Transactions } 24 25 // RemovedLogsEvent is posted when a reorg happens 26 type RemovedLogsEvent struct{ Logs []*types.Log } 27 28 type ChainEvent struct { 29 Block *types.Block 30 Hash common.Hash 31 Logs []*types.Log 32 } 33 34 type ChainSideEvent struct { 35 Block *types.Block 36 } 37 38 type ChainHeadEvent struct{ Block *types.Block }