-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
changes for unified[wip] #6758
base: unstable
Are you sure you want to change the base?
changes for unified[wip] #6758
Changes from all commits
6f32c73
76e6141
133919e
7389c2f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,7 +63,7 @@ declareGauge sync_committee_active, | |
declareCounter db_checkpoint_seconds, | ||
"Time spent checkpointing the database to clear the WAL file" | ||
|
||
proc fetchGenesisState( | ||
proc fetchGenesisState*( | ||
metadata: Eth2NetworkMetadata, | ||
genesisState = none(InputFile), | ||
genesisStateUrl = none(Uri) | ||
|
@@ -101,7 +101,7 @@ proc fetchGenesisState( | |
else: | ||
nil | ||
|
||
proc doRunTrustedNodeSync( | ||
proc doRunTrustedNodeSync*( | ||
db: BeaconChainDB, | ||
metadata: Eth2NetworkMetadata, | ||
databaseDir: string, | ||
|
@@ -1885,7 +1885,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: | ||
|
@@ -2344,7 +2344,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, | ||
|
@@ -2380,7 +2380,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 was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same |
||
|
||
# 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 | ||
|
@@ -2564,7 +2564,7 @@ proc handleStartUpCmd(config: var BeaconNodeConf) {.raises: [CatchableError].} = | |
|
||
{.pop.} # TODO moduletests exceptions | ||
|
||
programMain: | ||
when isMainModule: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This might be an outdated strategy.however it's present in other "main" modules as well. |
||
var config = makeBannerAndConfig(clientId, copyrights, nimBanner, | ||
SPEC_VERSION, [], BeaconNodeConf).valueOr: | ||
stderr.write error | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Metrics collection not generated, and this code is commented. possible solutions may required a significant rewrite (using some strategy simliar to an aggregator pattern)