solution: show in log when gets an upstream

This commit is contained in:
Igor Artamonov
2019-06-12 23:52:08 -04:00
parent 6681810f59
commit 748b94fb6c

View File

@@ -3,6 +3,7 @@ package io.emeraldpay.dshackle.upstream
import io.emeraldpay.grpc.Chain
import io.infinitape.etherjar.rpc.json.BlockJson
import io.infinitape.etherjar.rpc.json.TransactionJson
import org.slf4j.LoggerFactory
class Upstream(
val chain: Chain,
@@ -10,6 +11,8 @@ class Upstream(
private val ethereumWs: EthereumWs? = null
) {
private val log = LoggerFactory.getLogger(Upstream::class.java)
val head: EthereumHead = if (ethereumWs != null) {
EthereumWsHead(ethereumWs)
} else {
@@ -19,6 +22,6 @@ class Upstream(
}
init {
log.info("Configured for ${chain.chainName}")
}
}