From 27820a9281094fd181d58ea62cbe83688fe06538 Mon Sep 17 00:00:00 2001 From: msizov Date: Tue, 10 Sep 2024 01:41:27 +0700 Subject: [PATCH] fix error message for net_version check (#540) --- .../dshackle/upstream/ethereum/EthereumUpstreamValidator.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/EthereumUpstreamValidator.kt b/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/EthereumUpstreamValidator.kt index 3148f1b2..eede8bfe 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/EthereumUpstreamValidator.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/EthereumUpstreamValidator.kt @@ -175,8 +175,8 @@ class ChainIdValidator( if (!isChainValid) { val actualChain = Global.chainByChainId(it.t1).chainName log.warn( - "${chain.chainName} is specified for upstream ${upstream.getId()} (${chain.chainId.lowercase()} $netver) " + - "but actually it is $actualChain with chainId ${it.t1} and net_version ${it.t2}", + "${chain.chainName} is specified for upstream ${upstream.getId()} (chainId ${chain.chainId.lowercase()}, net_version ${chain.netVersion}) " + + "but actually it is $actualChain with chainId ${it.t1} and net_version $netver", ) }