From 8bacb256ed1ce45ab0dfd8648bba4a3e452fe8cf Mon Sep 17 00:00:00 2001 From: cheatfate Date: Wed, 9 Oct 2024 21:27:49 +0300 Subject: [PATCH] Add missing presets file. --- beacon_chain/validator_client/presets.nim | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 beacon_chain/validator_client/presets.nim diff --git a/beacon_chain/validator_client/presets.nim b/beacon_chain/validator_client/presets.nim new file mode 100644 index 0000000000..7b2740e432 --- /dev/null +++ b/beacon_chain/validator_client/presets.nim @@ -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