Handler implements PbftHandler
| 32 | |
| 33 | // Handler implements PbftHandler |
| 34 | type Handler struct { |
| 35 | mode HandlerMode |
| 36 | config *configs.DporConfig |
| 37 | |
| 38 | available bool |
| 39 | coinbase common.Address |
| 40 | lock sync.RWMutex |
| 41 | |
| 42 | dialer *Dialer |
| 43 | lbft *LBFT |
| 44 | dpor DporService |
| 45 | fsm ConsensusStateMachine |
| 46 | |
| 47 | knownBlocks *RecentBlocks |
| 48 | unknownAncestorBlocks *RecentBlocks |
| 49 | pendingBlockCh chan *types.Block |
| 50 | pendingImpeachBlockCh chan *types.Block |
| 51 | quitCh chan struct{} |
| 52 | |
| 53 | broadcastRecord *broadcastRecord |
| 54 | impeachmentRecord *impeachmentRecord |
| 55 | } |
| 56 | |
| 57 | // NewHandler creates a new Handler |
| 58 | func NewHandler(config *configs.DporConfig, coinbase common.Address, db database.Database) *Handler { |
nothing calls this directly
no outgoing calls
no test coverage detected