From 5ced441b17cbf1c93da3850d519dbaf5d05dbc50 Mon Sep 17 00:00:00 2001
From: jrandom <jrandom>
Date: Fri, 25 Jun 2004 18:15:32 +0000
Subject: [PATCH] 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.

---
 .../src/net/i2p/router/peermanager/IsFailingCalculator.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/router/java/src/net/i2p/router/peermanager/IsFailingCalculator.java b/router/java/src/net/i2p/router/peermanager/IsFailingCalculator.java
index 21d4e2f434..18d174f5c2 100644
--- a/router/java/src/net/i2p/router/peermanager/IsFailingCalculator.java
+++ b/router/java/src/net/i2p/router/peermanager/IsFailingCalculator.java
@@ -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() 
-- 
GitLab