From 0d9ae3a9364e1ff2375eb04c635d68a7de90b46a Mon Sep 17 00:00:00 2001 From: Igor Artamonov Date: Thu, 2 Jul 2020 21:12:37 -0400 Subject: [PATCH] problem: no feedback when verification is disabled --- .../emeraldpay/dshackle/upstream/ethereum/EthereumUpstream.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/EthereumUpstream.kt b/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/EthereumUpstream.kt index e7773292..f5b9df51 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/EthereumUpstream.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/EthereumUpstream.kt @@ -64,9 +64,11 @@ open class EthereumUpstream( log.info("Configured for ${chain.chainName}") if (getOptions().disableValidation != null && getOptions().disableValidation!!) { + log.warn("Disable validation for upstream ${this.getId()}") this.setLag(0) this.setStatus(UpstreamAvailability.OK) } else { + log.debug("Start validation for upstream ${this.getId()}") val validator = EthereumUpstreamValidator(this, getOptions()) validatorSubscription = validator.start() .subscribe(this::setStatus)