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 Gabriel mermelstein
parent 5afa9b13ea
commit 368bb3c199
No known key found for this signature in database
GPG Key ID: 82B8134785FEAE0D
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