mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-05 03:03:26 +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)
|
# createThread(t, processPromptCommands, addr p)
|
||||||
|
|
||||||
when isMainModule:
|
when isMainModule:
|
||||||
|
echo "$# ($#)\p" % [clientId, gitRevision]
|
||||||
|
|
||||||
randomize()
|
randomize()
|
||||||
let config = BeaconNodeConf.load(version = fullVersionStr())
|
let config = BeaconNodeConf.load(version = fullVersionStr())
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import
|
|||||||
version, conf
|
version, conf
|
||||||
|
|
||||||
const
|
const
|
||||||
clientId = "Nimbus beacon node v" & fullVersionStr()
|
clientId* = "Nimbus beacon node v" & fullVersionStr()
|
||||||
|
|
||||||
export
|
export
|
||||||
version
|
version
|
||||||
|
@ -27,6 +27,8 @@ const
|
|||||||
# launch the beacon_node with metrics enabled during the interop lock-in.
|
# launch the beacon_node with metrics enabled during the interop lock-in.
|
||||||
# We'll disable it once the lock-in is over.
|
# We'll disable it once the lock-in is over.
|
||||||
|
|
||||||
|
gitRevision* = staticExec("git rev-parse --short HEAD")
|
||||||
|
|
||||||
template versionAsStr*: string =
|
template versionAsStr*: string =
|
||||||
$versionMajor & "." & $versionMinor & "." & $versionBuild
|
$versionMajor & "." & $versionMinor & "." & $versionBuild
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user