mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-26 22:39:49 +00:00
beacon_node: print name, version and Git revision [skip ci] (#527)
This commit is contained in:
parent
97878566b8
commit
6a1d287652
@ -910,6 +910,8 @@ when hasPrompt:
|
||||
# createThread(t, processPromptCommands, addr p)
|
||||
|
||||
when isMainModule:
|
||||
echo "$# ($#)\p" % [clientId, gitRevision]
|
||||
|
||||
randomize()
|
||||
let config = BeaconNodeConf.load(version = fullVersionStr())
|
||||
|
||||
|
@ -4,7 +4,7 @@ import
|
||||
version, conf
|
||||
|
||||
const
|
||||
clientId = "Nimbus beacon node v" & fullVersionStr()
|
||||
clientId* = "Nimbus beacon node v" & fullVersionStr()
|
||||
|
||||
export
|
||||
version
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user