problem: bitcoin upstream breaks ethereum call selectors

This commit is contained in:
Igor Artamonov
2021-03-25 22:27:44 -04:00
parent 17f14987aa
commit 240a8b9a46

View File

@@ -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())