From 124def053090bb67cb3b3d50c2b4460f1af8be26 Mon Sep 17 00:00:00 2001 From: Igor Artamonov Date: Fri, 26 Jul 2019 23:10:46 -0400 Subject: [PATCH] problem: shouldn't setup new chains not described by upstream --- .../kotlin/io/emeraldpay/dshackle/upstream/GrpcUpstreams.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/io/emeraldpay/dshackle/upstream/GrpcUpstreams.kt b/src/main/kotlin/io/emeraldpay/dshackle/upstream/GrpcUpstreams.kt index 6e8d668d..fb4862e2 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/upstream/GrpcUpstreams.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/upstream/GrpcUpstreams.kt @@ -46,7 +46,7 @@ class GrpcUpstreams( .subscribe { value -> val chain = Chain.byId(value.chain.number) if (chain != Chain.UNSPECIFIED) { - getOrCreate(chain).onStatus(value) + known[chain]?.onStatus(value) } } return loaded