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

Function newMsgPool

consensus/vbft/msg_pool.go:97–104  ·  view source on GitHub ↗
(server *Server, historyLen uint32)

Source from the content-addressed store, hash-verified

95}
96
97func newMsgPool(server *Server, historyLen uint32) *MsgPool {
98 // TODO
99 return &MsgPool{
100 historyLen: historyLen,
101 server: server,
102 rounds: make(map[uint32]*ConsensusRound),
103 }
104}
105
106func (pool *MsgPool) clean() {
107 pool.lock.Lock()

Callers 7

TestAddMsgFunction · 0.85
TestHasMsgFunction · 0.85
TestGetProposalMsgsFunction · 0.85
TestGetEndorsementsMsgsFunction · 0.85
TestGetCommitMsgsFunction · 0.85
TestOnBlockSealedFunction · 0.85
initializeMethod · 0.85

Calls

no outgoing calls

Tested by 6

TestAddMsgFunction · 0.68
TestHasMsgFunction · 0.68
TestGetProposalMsgsFunction · 0.68
TestGetEndorsementsMsgsFunction · 0.68
TestGetCommitMsgsFunction · 0.68
TestOnBlockSealedFunction · 0.68