MCPcopy Create free account
hub / github.com/DNAProject/DNA / isPeerAlive

Method isPeerAlive

consensus/vbft/node_utils.go:44–52  ·  view source on GitHub ↗
(peerIdx uint32, blockNum uint32)

Source from the content-addressed store, hash-verified

42}
43
44func (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
54func (self *Server) isPeerActive(peerIdx uint32, blockNum uint32) bool {
55 if self.isPeerAlive(peerIdx, blockNum) {

Callers 3

isPeerActiveMethod · 0.95
isProposerMethod · 0.95
TestIsPeerAliveFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestIsPeerAliveFunction · 0.36