Skip to content

Commit 368bb3c

Browse files
Ivansete-statusgabrielmer
authored andcommitted
append current version in agentString which is used by the identify protocol (#3057)
1 parent 5afa9b1 commit 368bb3c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

waku/factory/external_config.nim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ include ../waku_core/message/default_values
2626

2727
export confTomlDefs, confTomlNet, confEnvvarDefs, confEnvvarNet
2828

29+
# Git version in git describe format (defined at compile time)
30+
const git_version* {.strdefine.} = "n/a"
31+
2932
type ConfResult*[T] = Result[T, string]
3033

3134
type EthRpcUrl* = distinct string
@@ -157,7 +160,7 @@ type WakuNodeConf* = object
157160
.}: uint16
158161

159162
agentString* {.
160-
defaultValue: "nwaku",
163+
defaultValue: "nwaku-" & git_version,
161164
desc: "Node agent string which is used as identifier in network",
162165
name: "agent-string"
163166
.}: string

0 commit comments

Comments
 (0)