2019-05-31 18:36:32 +00:00
|
|
|
type
|
|
|
|
NetworkBackendType* = enum
|
2019-11-03 23:02:27 +00:00
|
|
|
libp2p
|
|
|
|
libp2pDaemon
|
|
|
|
rlpx
|
2019-05-31 18:36:32 +00:00
|
|
|
|
2019-03-18 03:54:08 +00:00
|
|
|
const
|
2019-12-16 22:13:51 +00:00
|
|
|
NETWORK_TYPE {.strdefine.} = "libp2p_daemon"
|
2019-05-31 18:36:32 +00:00
|
|
|
|
2019-11-03 23:02:27 +00:00
|
|
|
networkBackend* = when NETWORK_TYPE == "rlpx": rlpx
|
|
|
|
elif NETWORK_TYPE == "libp2p": libp2p
|
|
|
|
elif NETWORK_TYPE == "libp2p_daemon": libp2pDaemon
|
2019-11-12 23:39:24 +00:00
|
|
|
else: {.fatal: "The 'NETWORK_TYPE' should be either 'libp2p', 'libp2p_daemon' or 'rlpx'" .}
|
2019-03-18 03:54:08 +00:00
|
|
|
|
2019-03-05 22:54:08 +00:00
|
|
|
const
|
2019-11-11 14:43:12 +00:00
|
|
|
copyrights* = "Copyright (c) 2019 Status Research & Development GmbH"
|
|
|
|
|
2019-03-05 22:54:08 +00:00
|
|
|
versionMajor* = 0
|
2019-08-05 00:00:49 +00:00
|
|
|
versionMinor* = 3
|
2019-05-14 13:31:19 +00:00
|
|
|
versionBuild* = 0
|
2019-03-05 22:54:08 +00:00
|
|
|
|
2019-08-05 00:00:49 +00:00
|
|
|
semanticVersion* = 2
|
2019-04-08 12:46:12 +00:00
|
|
|
# Bump this up every time a breaking change is introduced
|
|
|
|
# Clients having different semantic versions won't be able
|
|
|
|
# to join the same testnets.
|
|
|
|
|
2019-10-23 10:44:31 +00:00
|
|
|
useInsecureFeatures* = defined(insecure)
|
2019-09-07 17:48:05 +00:00
|
|
|
|
2019-11-08 10:33:16 +00:00
|
|
|
gitRevision* = staticExec("git rev-parse --short HEAD")
|
|
|
|
|
2019-11-12 00:05:35 +00:00
|
|
|
versionAsStr* =
|
|
|
|
$versionMajor & "." & $versionMinor & "." & $versionBuild
|
2019-03-05 22:54:08 +00:00
|
|
|
|
2019-11-12 00:05:35 +00:00
|
|
|
fullVersionStr* =
|
2019-11-12 23:39:24 +00:00
|
|
|
versionAsStr & " (" & gitRevision & ", " & NETWORK_TYPE & ")"
|
2019-05-31 18:36:32 +00:00
|
|
|
|