parent
9b7e8d70c8
commit
b8b0fb1ba7
|
|
@ -283,10 +283,9 @@ func (s *scheduler) filterCandidateParents(peer *resource.Peer, blocklist set.Sa
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
// Peer's depth exceeds limit depth.
|
// Parent's depth exceeds limit depth.
|
||||||
peerDepth := peer.Depth()
|
if parentDepth > defaultDepthLimit {
|
||||||
if parentDepth+peerDepth > defaultDepthLimit {
|
peer.Log.Debugf("exceeds the %d depth limit of the tree, candidate parent %s is %d", defaultDepthLimit, candidateParent.ID, parentDepth)
|
||||||
peer.Log.Debugf("exceeds the %d depth limit of the tree, peer depth is %d, candidate parent %s is %d", defaultDepthLimit, peerDepth, candidateParent.ID, parentDepth)
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue