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

Method DropMsg

consensus/vbft/msg_pool.go:133–140  ·  view source on GitHub ↗
(msg ConsensusMsg)

Source from the content-addressed store, hash-verified

131}
132
133func (pool *MsgPool) DropMsg(msg ConsensusMsg) {
134 pool.lock.Lock()
135 defer pool.lock.Unlock()
136
137 if roundMsgs, present := pool.rounds[msg.GetBlockNum()]; present {
138 roundMsgs.dropMsg(msg)
139 }
140}
141
142func (pool *MsgPool) HasMsg(msg ConsensusMsg, msgHash common.Uint256) bool {
143 pool.lock.RLock()

Callers 1

processProposalMsgMethod · 0.80

Calls 2

dropMsgMethod · 0.80
GetBlockNumMethod · 0.65

Tested by

no test coverage detected