Skip to content

Commit

Permalink
Add missing presets file.
Browse files Browse the repository at this point in the history
  • Loading branch information
cheatfate committed Oct 9, 2024
1 parent 2b53169 commit 8bacb25
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions beacon_chain/validator_client/presets.nim
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# beacon_chain
# Copyright (c) 2024 Status Research & Development GmbH
# Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms.

{.push raises: [].}

import ".."/spec/presets

const
PHASE0_FORK_VERSION* = Version [byte 0x00, 0x00, 0x00, 0x00]
GENESIS_FORK_VERSION* = PHASE0_FORK_VERSION
ALTAIR_FORK_VERSION* = Version [byte 0x01, 0x00, 0x00, 0x00]
BELLATRIX_FORK_VERSION* = Version [byte 0x02, 0x00, 0x00, 0x00]
CAPELLA_FORK_VERSION* = Version [byte 0x03, 0x00, 0x00, 0x00]
DENEB_FORK_VERSION* = Version [byte 0x04, 0x00, 0x00, 0x00]
ELECTRA_FORK_VERSION* = Version [byte 0x05, 0x00, 0x00, 0x00]

static: doAssert high(ConsensusFork) == ConsensusFork.Electra

0 comments on commit 8bacb25

Please sign in to comment.