(blkNum uint32)
| 216 | } |
| 217 | |
| 218 | func (pool *BlockPool) endorsedForEmptyBlock(blkNum uint32) bool { |
| 219 | pool.lock.RLock() |
| 220 | defer pool.lock.RUnlock() |
| 221 | |
| 222 | // check if had endorsed for some proposal |
| 223 | c := pool.candidateBlocks[blkNum] |
| 224 | if c == nil { |
| 225 | return false |
| 226 | } |
| 227 | |
| 228 | return c.EndorsedEmptyProposal != nil |
| 229 | } |
| 230 | |
| 231 | func (pool *BlockPool) setProposalEndorsed(proposal *blockProposalMsg, forEmpty bool) error { |
| 232 | pool.lock.Lock() |
no outgoing calls
no test coverage detected