nimbus-eth2/beacon_chain/version.nim

20 lines
510 B
Nim

const
network_type {.strdefine.} = "rlpx"
useRLPx* = network_type == "rlpx"
const
versionMajor* = 0
versionMinor* = 2
versionBuild* = 0
semanticVersion* = 1
# Bump this up every time a breaking change is introduced
# Clients having different semantic versions won't be able
# to join the same testnets.
template versionAsStr*: string =
$versionMajor & "." & $versionMinor & "." & $versionBuild
proc fullVersionStr*: string =
versionAsStr & (if useRLPx: " rlpx" else: " libp2p")