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
|
// 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;
|
||||||
|
Reference in New Issue
Block a user