From f443b7a297f5d51a553dc8794ff62632f6bde742 Mon Sep 17 00:00:00 2001 From: Igor Artamonov Date: Tue, 7 Sep 2021 21:55:55 -0400 Subject: [PATCH] problem: missing height in status log --- src/main/kotlin/io/emeraldpay/dshackle/upstream/Multistream.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/io/emeraldpay/dshackle/upstream/Multistream.kt b/src/main/kotlin/io/emeraldpay/dshackle/upstream/Multistream.kt index 47960364..0b5e1244 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/upstream/Multistream.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/upstream/Multistream.kt @@ -270,7 +270,7 @@ abstract class Multistream( fun printStatus() { var height: Long? = null try { - height = getHead().getFlux().next().block(Duration.ofSeconds(1))?.height + height = getHead().getCurrentHeight() } catch (e: java.lang.IllegalStateException) { //timout } catch (e: Exception) {