Method
HasMsg
(msg ConsensusMsg, msgHash common.Uint256)
Source from the content-addressed store, hash-verified
| 140 | } |
| 141 | |
| 142 | func (pool *MsgPool) HasMsg(msg ConsensusMsg, msgHash common.Uint256) bool { |
| 143 | pool.lock.RLock() |
| 144 | defer pool.lock.RUnlock() |
| 145 | |
| 146 | if roundMsgs, present := pool.rounds[msg.GetBlockNum()]; !present { |
| 147 | return false |
| 148 | } else { |
| 149 | return roundMsgs.hasMsg(msg, msgHash) |
| 150 | } |
| 151 | |
| 152 | return false |
| 153 | } |
| 154 | |
| 155 | func (pool *MsgPool) GetProposalMsgs(blocknum uint32) []ConsensusMsg { |
| 156 | pool.lock.RLock() |