(blockNum uint32, peerIdx uint32)
| 93 | } |
| 94 | |
| 95 | func (self *Server) is2ndProposer(blockNum uint32, peerIdx uint32) bool { |
| 96 | rank := self.getProposerRank(blockNum, peerIdx) |
| 97 | return rank > 0 && rank <= int(self.config.C) |
| 98 | } |
| 99 | |
| 100 | func (self *Server) getProposerRank(blockNum uint32, peerIdx uint32) int { |
| 101 | self.metaLock.RLock() |