mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-07 20:28:03 +00:00
Initial changes required by nimbus suite (aka "unified")
This commit is contained in:
parent
031d24ff41
commit
6f32c734a0
@ -1869,7 +1869,7 @@ proc onSlotStart(node: BeaconNode, wallTime: BeaconTime,
|
||||
|
||||
proc onSecond(node: BeaconNode, time: Moment) =
|
||||
# Nim GC metrics (for the main thread)
|
||||
updateThreadMetrics()
|
||||
# updateThreadMetrics()
|
||||
|
||||
if node.config.stopAtSyncedEpoch != 0 and
|
||||
node.dag.head.slot.epoch >= node.config.stopAtSyncedEpoch:
|
||||
@ -2328,7 +2328,7 @@ when not defined(windows):
|
||||
|
||||
asyncSpawn statusBarUpdatesPollingLoop()
|
||||
|
||||
proc doRunBeaconNode(config: var BeaconNodeConf, rng: ref HmacDrbgContext) {.raises: [CatchableError].} =
|
||||
proc doRunBeaconNode*(config: var BeaconNodeConf, rng: ref HmacDrbgContext) {.raises: [CatchableError].} =
|
||||
info "Launching beacon node",
|
||||
version = fullVersionStr,
|
||||
bls_backend = $BLS_BACKEND,
|
||||
@ -2364,7 +2364,7 @@ proc doRunBeaconNode(config: var BeaconNodeConf, rng: ref HmacDrbgContext) {.rai
|
||||
|
||||
# Nim GC metrics (for the main thread) will be collected in onSecond(), but
|
||||
# we disable piggy-backing on other metrics here.
|
||||
setSystemMetricsAutomaticUpdate(false)
|
||||
# setSystemMetricsAutomaticUpdate(false)
|
||||
|
||||
# There are no managed event loops in here, to do a graceful shutdown, but
|
||||
# letting the default Ctrl+C handler exit is safe, since we only read from
|
||||
@ -2548,7 +2548,7 @@ proc handleStartUpCmd(config: var BeaconNodeConf) {.raises: [CatchableError].} =
|
||||
|
||||
{.pop.} # TODO moduletests exceptions
|
||||
|
||||
programMain:
|
||||
when isMainModule:
|
||||
var config = makeBannerAndConfig(clientId, copyrights, nimBanner,
|
||||
SPEC_VERSION, [], BeaconNodeConf).valueOr:
|
||||
stderr.write error
|
||||
|
Loading…
x
Reference in New Issue
Block a user