From 9374b125a1d44d46c35a16ddbc58faf410c00544 Mon Sep 17 00:00:00 2001 From: Severiano Jaramillo Date: Thu, 27 Sep 2018 13:10:28 -0500 Subject: [PATCH] Use a more descriptive value (simulating infinite) when the node could not be reached, in NodeLatencyVerifier --- .../java/cy/agorise/graphenej/network/NodeLatencyVerifier.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphenej/src/main/java/cy/agorise/graphenej/network/NodeLatencyVerifier.java b/graphenej/src/main/java/cy/agorise/graphenej/network/NodeLatencyVerifier.java index cc1a3ef..93712d9 100644 --- a/graphenej/src/main/java/cy/agorise/graphenej/network/NodeLatencyVerifier.java +++ b/graphenej/src/main/java/cy/agorise/graphenej/network/NodeLatencyVerifier.java @@ -150,7 +150,7 @@ public class NodeLatencyVerifier { if(response == null) { // There is no internet connection, or the node is unreachable. We are just // putting an artificial delay. - delay = 10000; + delay = Long.MAX_VALUE; } else { long after = System.currentTimeMillis(); long before = timestamps.get(fullNode);