From 0f53d11b525ba86168a56e3e6804e7e4ee9ad549 Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Fri, 14 Jun 2024 10:08:44 +0200 Subject: [PATCH] Add startup banner (#2354) Same as all other nimbuses --- nimbus/config.nim | 2 +- nimbus/nimbus.nim | 4 ++++ nimbus/version.nim | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/nimbus/config.nim b/nimbus/config.nim index 2cf875ca3..5cf3cd10b 100644 --- a/nimbus/config.nim +++ b/nimbus/config.nim @@ -28,7 +28,7 @@ import common/chain_config, db/opts -export net +export net, defs const # TODO: fix this agent-string format to match other diff --git a/nimbus/nimbus.nim b/nimbus/nimbus.nim index dd433b3f5..f2992e846 100644 --- a/nimbus/nimbus.nim +++ b/nimbus/nimbus.nim @@ -208,6 +208,10 @@ proc run(nimbus: NimbusNode, conf: NimbusConf) = defaultChroniclesStream.output.outFile = nil # to avoid closing stdout discard defaultChroniclesStream.output.open(logFile, fmAppend) + info "Launching execution client", + version = FullVersionStr, + conf + when defined(evmc_enabled): evmcSetLibraryPath(conf.evm) diff --git a/nimbus/version.nim b/nimbus/version.nim index a48648f98..bc2aaccd3 100644 --- a/nimbus/version.nim +++ b/nimbus/version.nim @@ -60,3 +60,5 @@ const GitRevisionBytes* = hexToByteArray[4](GitRevision) NimVersion* = "Nim version " & $NimMajor & "." & $NimMinor & "." & $NimPatch + + FullVersionStr* = "v" & NimbusVersion & "-" & GitRevision