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 { ...@@ -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 { ...@@ -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;
......
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