We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2bc6332 + a784f90 commit 71900b4Copy full SHA for 71900b4
src/addrman.cpp
@@ -67,9 +67,8 @@ double CAddrInfo::GetChance(int64_t nNow) const
67
if (nSinceLastTry < 60 * 10)
68
fChance *= 0.01;
69
70
- // deprioritize 50% after each failed attempt
71
- for (int n = 0; n < nAttempts; n++)
72
- fChance /= 1.5;
+ // deprioritize 66% after each failed attempt, but at most 1/28th to avoid the search taking forever or overly penalizing outages.
+ fChance *= pow(0.66, min(nAttempts, 8));
73
74
return fChance;
75
}
0 commit comments