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.
This commit is contained in:
jrandom
2004-06-25 18:15:32 +00:00
committed by zzz
parent 57801202fd
commit 5ced441b17

View File

@ -45,7 +45,7 @@ public class IsFailingCalculator extends Calculator {
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?
if (_log.shouldLog(Log.DEBUG))
_log.debug("Peer " + profile.getPeer().toBase64()
@ -53,7 +53,7 @@ public class IsFailingCalculator extends Calculator {
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?
if (_log.shouldLog(Log.DEBUG))
_log.debug("Peer " + profile.getPeer().toBase64()