mirror of https://github.com/oxen-io/lokinet
try not to spam builds
This commit is contained in:
parent
619d8d3776
commit
af041cfee4
|
@ -479,7 +479,8 @@ namespace llarp
|
|||
{
|
||||
if (markedBad or path::Builder::BuildCooldownHit(now))
|
||||
return false;
|
||||
if (NumInStatus(path::ePathBuilding) >= numDesiredPaths)
|
||||
|
||||
if (NumInStatus(path::ePathBuilding) >= std::max(numDesiredPaths / size_t{2}, size_t{1}))
|
||||
return false;
|
||||
|
||||
size_t numValidPaths = 0;
|
||||
|
|
Loading…
Reference in New Issue