Use a more descriptive value (simulating infinite) when the node could not be reached, in NodeLatencyVerifier

This commit is contained in:
Severiano Jaramillo 2018-09-27 13:10:28 -05:00
parent bb14110b09
commit 9374b125a1

View file

@ -150,7 +150,7 @@ public class NodeLatencyVerifier {
if(response == null) { if(response == null) {
// There is no internet connection, or the node is unreachable. We are just // There is no internet connection, or the node is unreachable. We are just
// putting an artificial delay. // putting an artificial delay.
delay = 10000; delay = Long.MAX_VALUE;
} else { } else {
long after = System.currentTimeMillis(); long after = System.currentTimeMillis();
long before = timestamps.get(fullNode); long before = timestamps.get(fullNode);