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

Method addTimeoutCnt

p2pserver/block_sync.go:939–944  ·  view source on GitHub ↗

addTimeoutCnt incre a node's timeout count

(nodeId uint64)

Source from the content-addressed store, hash-verified

937
938//addTimeoutCnt incre a node's timeout count
939func (this *BlockSyncMgr) addTimeoutCnt(nodeId uint64) {
940 n := this.getNodeWeight(nodeId)
941 if n != nil {
942 n.AddTimeoutCnt()
943 }
944}
945
946//addErrorRespCnt incre a node's error resp count
947func (this *BlockSyncMgr) addErrorRespCnt(nodeId uint64) {

Callers 1

checkTimeoutMethod · 0.95

Calls 2

getNodeWeightMethod · 0.95
AddTimeoutCntMethod · 0.80

Tested by

no test coverage detected