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

Method addErrorRespCnt

p2pserver/block_sync.go:947–952  ·  view source on GitHub ↗

addErrorRespCnt incre a node's error resp count

(nodeId uint64)

Source from the content-addressed store, hash-verified

945
946//addErrorRespCnt incre a node's error resp count
947func (this *BlockSyncMgr) addErrorRespCnt(nodeId uint64) {
948 n := this.getNodeWeight(nodeId)
949 if n != nil {
950 n.AddErrorRespCnt()
951 }
952}
953
954//appendReqTime append a node's request time
955func (this *BlockSyncMgr) appendReqTime(nodeId uint64) {

Callers 2

OnHeaderReceiveMethod · 0.95
saveBlockMethod · 0.95

Calls 2

getNodeWeightMethod · 0.95
AddErrorRespCntMethod · 0.80

Tested by

no test coverage detected