startup fixes

This commit is contained in:
Pedro Miranda 2024-11-27 10:04:01 +00:00
parent 2c5581c6c9
commit 9da97e9ca4

View File

@ -6,7 +6,7 @@
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
import import
std/[atomics, os, exitprocs], std/[atomics, os],
chronicles, chronicles,
stew/io2, stew/io2,
consensus/consensus_wrapper, consensus/consensus_wrapper,
@ -14,6 +14,7 @@ import
beacon_chain/[conf, conf_common], beacon_chain/[conf, conf_common],
beacon_chain/[beacon_chain_db], beacon_chain/[beacon_chain_db],
beacon_chain/validators/keystore_management, beacon_chain/validators/keystore_management,
beacon_chain/nimbus_binary_common,
version version
## Constants ## Constants
@ -156,7 +157,7 @@ when isMainModule:
var tasksList: NimbusTasks = NimbusTasks.new var tasksList: NimbusTasks = NimbusTasks.new
var beaconNodeConfig = makeBannerAndConfig( var beaconNodeConfig = makeBannerAndConfig(
clientId, copyrights, nimBanner, SPEC_VERSION, [], BeaconNodeConf clientName, versionAsStr, nimBanner, "", [], BeaconNodeConf
).valueOr: ).valueOr:
stderr.write error stderr.write error
quit QuitFailure quit QuitFailure
@ -166,7 +167,7 @@ when isMainModule:
setupFileLimits() setupFileLimits()
setupLogging(config.logLevel, config.logStdout, config.logFile) # setupLogging(config.logLevel, config.logStdout, config.logFile)
createPidFile(beaconNodeConfig.databaseDir.string / "unified.pid") createPidFile(beaconNodeConfig.databaseDir.string / "unified.pid")