Return current block height in DescribeChain response

This commit is contained in:
a10zn8
2022-11-22 14:55:11 +04:00
parent f34bd463ba
commit 16a336c968
2 changed files with 2 additions and 1 deletions

View File

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