(peerIdx uint32, blockNum uint32)
| 42 | } |
| 43 | |
| 44 | func (self *Server) isPeerAlive(peerIdx uint32, blockNum uint32) bool { |
| 45 | |
| 46 | // TODO |
| 47 | if peerIdx == self.Index { |
| 48 | return true |
| 49 | } |
| 50 | |
| 51 | return self.peerPool.isPeerAlive(peerIdx) |
| 52 | } |
| 53 | |
| 54 | func (self *Server) isPeerActive(peerIdx uint32, blockNum uint32) bool { |
| 55 | if self.isPeerAlive(peerIdx, blockNum) { |
no outgoing calls