solution: show in log when gets an upstream
This commit is contained in:
@@ -3,6 +3,7 @@ package io.emeraldpay.dshackle.upstream
|
|||||||
import io.emeraldpay.grpc.Chain
|
import io.emeraldpay.grpc.Chain
|
||||||
import io.infinitape.etherjar.rpc.json.BlockJson
|
import io.infinitape.etherjar.rpc.json.BlockJson
|
||||||
import io.infinitape.etherjar.rpc.json.TransactionJson
|
import io.infinitape.etherjar.rpc.json.TransactionJson
|
||||||
|
import org.slf4j.LoggerFactory
|
||||||
|
|
||||||
class Upstream(
|
class Upstream(
|
||||||
val chain: Chain,
|
val chain: Chain,
|
||||||
@@ -10,6 +11,8 @@ class Upstream(
|
|||||||
private val ethereumWs: EthereumWs? = null
|
private val ethereumWs: EthereumWs? = null
|
||||||
) {
|
) {
|
||||||
|
|
||||||
|
private val log = LoggerFactory.getLogger(Upstream::class.java)
|
||||||
|
|
||||||
val head: EthereumHead = if (ethereumWs != null) {
|
val head: EthereumHead = if (ethereumWs != null) {
|
||||||
EthereumWsHead(ethereumWs)
|
EthereumWsHead(ethereumWs)
|
||||||
} else {
|
} else {
|
||||||
@@ -19,6 +22,6 @@ class Upstream(
|
|||||||
}
|
}
|
||||||
|
|
||||||
init {
|
init {
|
||||||
|
log.info("Configured for ${chain.chainName}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user