From 16a336c9686efc8fab299162423cf1174d5584ec Mon Sep 17 00:00:00 2001 From: a10zn8 Date: Tue, 22 Nov 2022 14:55:11 +0400 Subject: [PATCH 1/2] 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() From 4c8a5638c45765541f2524fba0022c0b0c1187ee Mon Sep 17 00:00:00 2001 From: a10zn8 Date: Tue, 22 Nov 2022 15:43:38 +0400 Subject: [PATCH 2/2] update submodule api --- emerald-java-client | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emerald-java-client b/emerald-java-client index 130e1908..6efc63d1 160000 --- a/emerald-java-client +++ b/emerald-java-client @@ -1 +1 @@ -Subproject commit 130e1908937e72f1bb1d256afd51af6e46a368d3 +Subproject commit 6efc63d11f502bba6f756db5f23349016a1a3a74