`make testnet1`: switch the local node to the Nim libp2p

so we can debug it without having to also consider Go-Nim libp2p
interoperability issues
This commit is contained in:
Stefan Talpalaru 2020-02-06 12:44:11 +01:00 committed by zah
parent 989559cd2d
commit a37aa3b86d
1 changed files with 3 additions and 0 deletions

View File

@ -75,6 +75,7 @@ cli do (testnetName {.argument.}: string):
validatorsDir = dataDir / "validators"
dumpDir = dataDir / "dump"
beaconNodeBinary = buildDir / "beacon_node_" & dataDirName
var
nimFlags = "-d:chronicles_log_level=TRACE " & getEnv("NIM_PARAMS")
let depositContractFile = testnetDir / depositContractFileName
@ -95,6 +96,8 @@ cli do (testnetName {.argument.}: string):
rmDir dataDir
cd rootDir
if testnet == "testnet1":
nimFlags &= " -d:NETWORK_TYPE=libp2p"
exec &"""nim c {nimFlags} -d:"const_preset={preset}" -o:"{beaconNodeBinary}" beacon_chain/beacon_node.nim"""
mkDir dumpDir