I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 1b3aefbb authored by zzz's avatar zzz
Browse files

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
parent c03511b9
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment