nimbus-eth2/beacon_chain/version.nim

35 lines
942 B
Nim
Raw Normal View History

type
NetworkBackendType* = enum
libp2p
libp2pDaemon
const
NETWORK_TYPE {.strdefine.} = "libp2p_daemon"
2020-01-24 08:32:52 +00:00
networkBackend* = when NETWORK_TYPE == "libp2p": libp2p
elif NETWORK_TYPE == "libp2p_daemon": libp2pDaemon
2020-01-24 08:32:52 +00:00
else: {.fatal: "The 'NETWORK_TYPE' should be either 'libp2p', 'libp2p_daemon'" .}
const
2019-11-11 14:43:12 +00:00
copyrights* = "Copyright (c) 2019 Status Research & Development GmbH"
versionMajor* = 0
versionMinor* = 3
versionBuild* = 0
semanticVersion* = 2
# Bump this up every time a breaking change is introduced
# Clients having different semantic versions won't be able
# to join the same testnets.
useInsecureFeatures* = defined(insecure)
gitRevision* = staticExec("git rev-parse --short HEAD")
versionAsStr* =
$versionMajor & "." & $versionMinor & "." & $versionBuild
fullVersionStr* =
versionAsStr & " (" & gitRevision & ", " & NETWORK_TYPE & ")"