Skip to content

Commit 7f8a06e

Browse files
authored
Fix the SECONDS_PER_SLOT compatibility check on loading configs (#7616)
Can only checkCompatibility once, as it has the sideeffect of removing the value from the table :-) Do the more restrictive check for now.
1 parent 503ac5e commit 7f8a06e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

beacon_chain/spec/presets.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -915,9 +915,9 @@ proc readRuntimeConfig*(
915915
const name = astToStr(constValue)
916916
checkCompatibility(constValue, name, operator)
917917

918-
checkCompatibility MIN_SECONDS_PER_SLOT .. MAX_SECONDS_PER_SLOT,
919-
"SECONDS_PER_SLOT", `in`
920918
checkCompatibility SECONDS_PER_SLOT # Temporary, until removed from presets
919+
# checkCompatibility MIN_SECONDS_PER_SLOT .. MAX_SECONDS_PER_SLOT,
920+
# "SECONDS_PER_SLOT", `in`
921921

922922
checkCompatibility BLS_WITHDRAWAL_PREFIX
923923

0 commit comments

Comments
 (0)