From 240a8b9a46168549c18b8632456fad7195972417 Mon Sep 17 00:00:00 2001 From: Igor Artamonov Date: Thu, 25 Mar 2021 22:27:44 -0400 Subject: [PATCH] problem: bitcoin upstream breaks ethereum call selectors --- src/main/kotlin/io/emeraldpay/dshackle/rpc/NativeCall.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/io/emeraldpay/dshackle/rpc/NativeCall.kt b/src/main/kotlin/io/emeraldpay/dshackle/rpc/NativeCall.kt index a3e3053b..5e8f76d7 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/rpc/NativeCall.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/rpc/NativeCall.kt @@ -56,7 +56,7 @@ open class NativeCall( init { multistreamHolder.observeChains().subscribe { chain -> - if (!ethereumCallSelectors.containsKey(chain)) { + if (BlockchainType.from(chain) == BlockchainType.ETHEREUM && !ethereumCallSelectors.containsKey(chain)) { multistreamHolder.getUpstream(chain)?.let { up -> val reader = up.cast(EthereumMultistream::class.java).getReader() ethereumCallSelectors[chain] = EthereumCallSelector(reader.heightByHash())