PeerManager: Remove small same-country bonus

This was done back when we were desperate for
 build improvement but it's bad for anonymity
 and probably a little slow also
This commit is contained in:
zzz
2014-01-04 16:43:54 +00:00
parent c03511b971
commit 1b3aefbbce

View File

@ -67,6 +67,7 @@ class CapacityCalculator {
// boost connected peers
if (profile.isEstablished())
capacity += BONUS_ESTABLISHED;
/****
// boost same country
if (profile.isSameCountry()) {
double bonus = BONUS_SAME_COUNTRY;
@ -78,6 +79,7 @@ class CapacityCalculator {
}
capacity += bonus;
}
****/
// penalize unreachable peers
if (profile.wasUnreachable())
capacity -= PENALTY_UNREACHABLE;