From b4e434849bb5277b1451ecb9fb8c4843dd1a78c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20Talpalaru?= Date: Tue, 4 Aug 2020 15:00:55 +0200 Subject: [PATCH] makeBannerAndConfig(): disable ProveInit warning --- beacon_chain/nimbus_binary_common.nim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/beacon_chain/nimbus_binary_common.nim b/beacon_chain/nimbus_binary_common.nim index 9b5898553..7a0246a51 100644 --- a/beacon_chain/nimbus_binary_common.nim +++ b/beacon_chain/nimbus_binary_common.nim @@ -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,