Hotfix: fix Altona's GENESIS_FORK_VERSION value

This commit is contained in:
Zahary Karadjov 2020-07-13 12:10:26 +03:00
parent 74396747a3
commit 49800b3360
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
1 changed files with 5 additions and 6 deletions

View File

@ -83,12 +83,11 @@ proc extractRuntimePreset*(configPath: string, configData: PresetFile): RuntimeP
result = RuntimePreset()
for name, value in configData.values:
if name notin runtimeValues:
if not presetValueLoaders[name.int](result, value):
let errMsg = "The preset '" & configPath & "'is not compatible with " &
"the current build due to an incompatible value " &
$name & " = " & value.string
raise newException(PresetIncompatible, errMsg)
if not presetValueLoaders[name.int](result, value):
let errMsg = "The preset '" & configPath & "'is not compatible with " &
"the current build due to an incompatible value " &
$name & " = " & value.string
raise newException(PresetIncompatible, errMsg)
proc loadEth2NetworkMetadata*(path: string): Eth2NetworkMetadata
{.raises: [CatchableError, Defect].} =