MCPcopy Create free account
hub / github.com/DNAProject/DNA / DbftService

Struct DbftService

consensus/dbft/dbft_service.go:46–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44)
45
46type 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
63func NewDbftService(bkAccount *account.Account, txpool, p2p *actor.PID) (*DbftService, error) {
64 service := &DbftService{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected