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