forked from I2P_Developers/i2p.i2p
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user