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

Method GetCommitMsgs

consensus/vbft/msg_pool.go:185–198  ·  view source on GitHub ↗
(blocknum uint32)

Source from the content-addressed store, hash-verified

183}
184
185func (pool *MsgPool) GetCommitMsgs(blocknum uint32) []ConsensusMsg {
186 pool.lock.RLock()
187 defer pool.lock.RUnlock()
188
189 roundMsgs, ok := pool.rounds[blocknum]
190 if !ok {
191 return nil
192 }
193 msg, ok := roundMsgs.msgs[BlockCommitMessage]
194 if !ok {
195 return nil
196 }
197 return msg
198}
199
200func (pool *MsgPool) GetBlockSubmitMsgNums(blocknum uint32) []ConsensusMsg {
201 pool.lock.RLock()

Callers 6

TestGetCommitMsgsFunction · 0.80
startNewRoundMethod · 0.80
actionLoopMethod · 0.80
catchConsensusMethod · 0.80
hasBlockConsensusedMethod · 0.80
canFastForwardMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestGetCommitMsgsFunction · 0.64