mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-27 12:35:00 +00:00
startup fixes
This commit is contained in:
parent
2c5581c6c9
commit
9da97e9ca4
@ -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")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user