| 44 | ) |
| 45 | |
| 46 | type DbftService struct { |
| 47 | context ConsensusContext |
| 48 | Account *account.Account |
| 49 | timer *time.Timer |
| 50 | timerHeight uint32 |
| 51 | timeView byte |
| 52 | blockReceivedTime time.Time |
| 53 | started bool |
| 54 | ledger *ledger.Ledger |
| 55 | incrValidator *increment.IncrementValidator |
| 56 | poolActor *actorTypes.TxPoolActor |
| 57 | p2p *actorTypes.P2PActor |
| 58 | |
| 59 | pid *actor.PID |
| 60 | sub *events.ActorSubscriber |
| 61 | } |
| 62 | |
| 63 | func NewDbftService(bkAccount *account.Account, txpool, p2p *actor.PID) (*DbftService, error) { |
| 64 | service := &DbftService{ |
nothing calls this directly
no outgoing calls
no test coverage detected