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

Method MarkFailedNode

p2pserver/block_sync.go:180–185  ·  view source on GitHub ↗

MarkFailedNode mark node failed, after request timeout

()

Source from the content-addressed store, hash-verified

178
179//MarkFailedNode mark node failed, after request timeout
180func (this *SyncFlightInfo) MarkFailedNode() {
181 this.lock.Lock()
182 defer this.lock.Unlock()
183 this.failedNodes[this.nodeId] += 1
184 this.totalFailed++
185}
186
187//GetFailedTimes return failed times of a node
188func (this *SyncFlightInfo) GetFailedTimes(nodeId uint64) int {

Callers 1

checkTimeoutMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected