From 31b301952af291dc1526deb54818aff6a68eaa50 Mon Sep 17 00:00:00 2001 From: a10zn8 Date: Tue, 22 Aug 2023 14:25:26 +0400 Subject: [PATCH] set status by lag for all upstreams (#291) --- .../io/emeraldpay/dshackle/upstream/DefaultUpstream.kt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main/kotlin/io/emeraldpay/dshackle/upstream/DefaultUpstream.kt b/src/main/kotlin/io/emeraldpay/dshackle/upstream/DefaultUpstream.kt index d160f1e2f..c57eaa6fc 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/upstream/DefaultUpstream.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/upstream/DefaultUpstream.kt @@ -89,11 +89,6 @@ abstract class DefaultUpstream( } private fun statusByLag(lag: Long?, proposed: UpstreamAvailability): UpstreamAvailability { - if (options.disableValidation) { - // if we specifically told that this upstream should be _always valid_ then skip - // the status calculation and trust the proposed value as is - return proposed - } if (lag == null) { return UpstreamAvailability.UNAVAILABLE }