create dumpdir in beaconnode binary

This commit is contained in:
Jacek Sieka 2020-05-20 10:58:48 +02:00 committed by tersec
parent 3fa2f70853
commit 30f84224a4
2 changed files with 4 additions and 4 deletions

View File

@ -1057,6 +1057,10 @@ programMain:
createPidFile(config.dataDir.string / "beacon_node.pid")
if config.dumpEnabled:
createDir(config.dumpDir)
createDir(config.dumpDir / "incoming")
var node = waitFor BeaconNode.init(config)
## Ctrl+C handling

View File

@ -87,7 +87,6 @@ cli do (skipGoerliKey {.
.replace(")", "_")
dataDir = buildDir / "data" / dataDirName
validatorsDir = dataDir / "validators"
dumpDir = dataDir / "dump"
beaconNodeBinary = buildDir / "beacon_node_" & dataDirName
var
nimFlags = "-d:chronicles_log_level=TRACE " & getEnv("NIM_PARAMS")
@ -115,9 +114,6 @@ cli do (skipGoerliKey {.
cd rootDir
exec &"""nim c {nimFlags} -d:"const_preset={preset}" -o:"{beaconNodeBinary}" beacon_chain/beacon_node.nim"""
mkDir dumpDir
mkDir dumpDir / "incoming"
proc execIgnoringExitCode(s: string) =
# reduces the error output when interrupting an external command with Ctrl+C
try: