makeBannerAndConfig(): disable ProveInit warning

This commit is contained in:
Ștefan Talpalaru 2020-08-04 15:00:55 +02:00
parent a1d3532f49
commit b4e434849b
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
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" &
nimBanner
# TODO for some reason, copyrights are printed when doing `--help`
ConfType.load(
{.push warning[ProveInit]: off.}
let config = ConfType.load(
version = version,
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
proc sleepToSlotOffset*(clock: BeaconClock, extra: chronos.Duration,