append current version in agentString which is used by the identify protocol (#3057)

This commit is contained in:
Ivan FB 2024-09-25 11:52:02 +02:00 committed by GitHub
parent 711e7db1e9
commit b688edc079
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -26,6 +26,9 @@ include ../waku_core/message/default_values
export confTomlDefs, confTomlNet, confEnvvarDefs, confEnvvarNet
# Git version in git describe format (defined at compile time)
const git_version* {.strdefine.} = "n/a"
type ConfResult*[T] = Result[T, string]
type EthRpcUrl* = distinct string
@ -157,7 +160,7 @@ type WakuNodeConf* = object
.}: uint16
agentString* {.
defaultValue: "nwaku",
defaultValue: "nwaku-" & git_version,
desc: "Node agent string which is used as identifier in network",
name: "agent-string"
.}: string