Merge pull request #39 from p2p-org/return-current-block-height

add current block height to chain description
This commit is contained in:
a10zn8
2022-11-22 17:09:13 +04:00
committed by GitHub
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()