(blocknum uint32)
| 183 | } |
| 184 | |
| 185 | func (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 | |
| 200 | func (pool *MsgPool) GetBlockSubmitMsgNums(blocknum uint32) []ConsensusMsg { |
| 201 | pool.lock.RLock() |
no outgoing calls