Skip to content

Commit

Permalink
Add comment why and how OptionalForks should be maintained.
Browse files Browse the repository at this point in the history
  • Loading branch information
cheatfate committed Oct 31, 2024
1 parent 374cce3 commit 16a8601
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions beacon_chain/validator_client/common.nim
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ static: doAssert(high(ConsensusFork) == ConsensusFork.Electra,
"Update OptionalForks constant!")
const
OptionalForks* = {ConsensusFork.Electra}
## When a new ConsensusFork is added and before this fork is activated on
## `mainnet`, it should be part of `OptionalForks`.
## In this case, the client will ignore missing <FORKNAME>_VERSION
## and <FORKNAME>_EPOCH constants from the data reported by BN via
## `/eth/v1/config/spec` API call.

type
ServiceState* {.pure.} = enum
Expand Down

0 comments on commit 16a8601

Please sign in to comment.