beacon_node: print name, version and Git revision [skip ci] (#527)

This commit is contained in:
Ștefan Talpalaru 2019-11-08 11:33:16 +01:00 committed by Dustin Brody
parent 97878566b8
commit 6a1d287652
3 changed files with 5 additions and 1 deletions

View File

@ -910,6 +910,8 @@ when hasPrompt:
# createThread(t, processPromptCommands, addr p)
when isMainModule:
echo "$# ($#)\p" % [clientId, gitRevision]
randomize()
let config = BeaconNodeConf.load(version = fullVersionStr())

View File

@ -4,7 +4,7 @@ import
version, conf
const
clientId = "Nimbus beacon node v" & fullVersionStr()
clientId* = "Nimbus beacon node v" & fullVersionStr()
export
version

View File

@ -27,6 +27,8 @@ const
# launch the beacon_node with metrics enabled during the interop lock-in.
# We'll disable it once the lock-in is over.
gitRevision* = staticExec("git rev-parse --short HEAD")
template versionAsStr*: string =
$versionMajor & "." & $versionMinor & "." & $versionBuild