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

Function newStateMgr

consensus/vbft/state_mgmt.go:95–103  ·  view source on GitHub ↗
(server *Server)

Source from the content-addressed store, hash-verified

93}
94
95func newStateMgr(server *Server) *StateMgr {
96 return &StateMgr{
97 server: server,
98 syncReadyTimeout: time.Second * 10,
99 currentState: Init,
100 StateEventC: make(chan *StateEvent, 16),
101 peers: make(map[uint32]*PeerState),
102 }
103}
104
105func (self *StateMgr) getState() ServerState {
106 return self.currentState

Callers 2

constructPeerStateFunction · 0.85
NewVbftServerFunction · 0.85

Calls

no outgoing calls

Tested by 1

constructPeerStateFunction · 0.68