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

Skip to content
Snippets Groups Projects
Commit 5ced441b authored by jrandom's avatar jrandom Committed by zzz
Browse files

dont fail the peer based on tunnel activity (it may not be their fault)

we *do* still penalize the peer based on tunnel failures, but thats in the reliability calculator, not this one.
parent 57801202
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,7 @@ public class IsFailingCalculator extends Calculator { ...@@ -45,7 +45,7 @@ public class IsFailingCalculator extends Calculator {
long recently = _context.clock().now() - GRACE_PERIOD; long recently = _context.clock().now() - GRACE_PERIOD;
if (profile.getTunnelHistory().getLastRejected() >= recently) { if (false && (profile.getTunnelHistory().getLastRejected() >= recently) ) {
// have they refused to participate in a tunnel in the last 5 minutes? // have they refused to participate in a tunnel in the last 5 minutes?
if (_log.shouldLog(Log.DEBUG)) if (_log.shouldLog(Log.DEBUG))
_log.debug("Peer " + profile.getPeer().toBase64() _log.debug("Peer " + profile.getPeer().toBase64()
...@@ -53,7 +53,7 @@ public class IsFailingCalculator extends Calculator { ...@@ -53,7 +53,7 @@ public class IsFailingCalculator extends Calculator {
return true; return true;
} }
if (profile.getTunnelHistory().getLastFailed() >= recently) { if (false && (profile.getTunnelHistory().getLastFailed() >= recently) ) {
// has a tunnel they participate in failed in the last 5 minutes? // has a tunnel they participate in failed in the last 5 minutes?
if (_log.shouldLog(Log.DEBUG)) if (_log.shouldLog(Log.DEBUG))
_log.debug("Peer " + profile.getPeer().toBase64() _log.debug("Peer " + profile.getPeer().toBase64()
......
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