From 16a336c9686efc8fab299162423cf1174d5584ec Mon Sep 17 00:00:00 2001 From: a10zn8 Date: Tue, 22 Nov 2022 14:55:11 +0400 Subject: [PATCH] Return current block height in DescribeChain response --- emerald-java-client | 2 +- src/main/kotlin/io/emeraldpay/dshackle/rpc/Describe.kt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/emerald-java-client b/emerald-java-client index 35196f35..130e1908 160000 --- a/emerald-java-client +++ b/emerald-java-client @@ -1 +1 @@ -Subproject commit 35196f35f3d0546d59b51acfeb895174eac170f9 +Subproject commit 130e1908937e72f1bb1d256afd51af6e46a368d3 diff --git a/src/main/kotlin/io/emeraldpay/dshackle/rpc/Describe.kt b/src/main/kotlin/io/emeraldpay/dshackle/rpc/Describe.kt index 2d4cccf6..775d16fc 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/rpc/Describe.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/rpc/Describe.kt @@ -44,6 +44,7 @@ class Describe( .setChain(Common.ChainRef.forNumber(chain.id)) .addAllSupportedMethods(targets) .setStatus(status) + .setCurrentHeight(chainUpstreams.getHead().getCurrentHeight() ?: 0) chainUpstreams.getAll().let { ups -> ups.forEach { up -> val nodes = QuorumForLabels()