makeBannerAndConfig(): disable ProveInit warning (#1430)

This commit is contained in:
Ștefan Talpalaru 2020-08-04 16:27:38 +02:00 committed by GitHub
commit 3dffa7f60c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -67,9 +67,12 @@ template makeBannerAndConfig*(clientId: string, ConfType: type): untyped =
"eth2 specification v" & SPEC_VERSION & "\p\p" & "eth2 specification v" & SPEC_VERSION & "\p\p" &
nimBanner nimBanner
# TODO for some reason, copyrights are printed when doing `--help` # TODO for some reason, copyrights are printed when doing `--help`
ConfType.load( {.push warning[ProveInit]: off.}
let config = ConfType.load(
version = version, version = version,
copyrightBanner = clientId) # but a short version string makes more sense... copyrightBanner = clientId) # but a short version string makes more sense...
{.pop.}
config
# TODO not sure if this belongs here but it doesn't belong in `time.nim` either # TODO not sure if this belongs here but it doesn't belong in `time.nim` either
proc sleepToSlotOffset*(clock: BeaconClock, extra: chronos.Duration, proc sleepToSlotOffset*(clock: BeaconClock, extra: chronos.Duration,