2024-04-16 18:09:39 +00:00
|
|
|
# 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: [].}
|
|
|
|
|
|
|
|
# Minimal preset - Electra
|
2024-04-22 09:00:38 +00:00
|
|
|
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.0/presets/minimal/electra.yaml
|
2024-04-16 18:09:39 +00:00
|
|
|
const
|
2024-04-18 07:30:01 +00:00
|
|
|
# Gwei values
|
|
|
|
# ---------------------------------------------------------------
|
|
|
|
# 2**5 * 10**9 (= 32,000,000,000) Gwei
|
|
|
|
MIN_ACTIVATION_BALANCE* = 32000000000
|
|
|
|
# 2**11 * 10**9 (= 2,048,000,000,000) Gwei
|
|
|
|
MAX_EFFECTIVE_BALANCE_ELECTRA* = 2048000000000
|
|
|
|
|
|
|
|
# State list lengths
|
|
|
|
# ---------------------------------------------------------------
|
|
|
|
# `uint64(2**27)` (= 134,217,728)
|
|
|
|
PENDING_BALANCE_DEPOSITS_LIMIT*: uint64 = 134217728
|
|
|
|
# customized] `uint64(2**6)` (= 64)
|
|
|
|
PENDING_PARTIAL_WITHDRAWALS_LIMIT*: uint64 = 64
|
|
|
|
# [customized] `uint64(2**6)` (= 64)
|
|
|
|
PENDING_CONSOLIDATIONS_LIMIT*: uint64 = 64
|
|
|
|
|
|
|
|
# Reward and penalty quotients
|
|
|
|
# ---------------------------------------------------------------
|
|
|
|
# `uint64(2**12)` (= 4,096)
|
|
|
|
MIN_SLASHING_PENALTY_QUOTIENT_ELECTRA*: uint64 = 4096
|
|
|
|
# `uint64(2**12)` (= 4,096)
|
|
|
|
WHISTLEBLOWER_REWARD_QUOTIENT_ELECTRA*: uint64 = 4096
|
|
|
|
|
|
|
|
# # Max operations per block
|
|
|
|
# ---------------------------------------------------------------
|
2024-04-16 18:09:39 +00:00
|
|
|
# `uint64(2**0)` (= 1)
|
|
|
|
MAX_ATTESTER_SLASHINGS_ELECTRA*: uint64 = 1
|
|
|
|
# `uint64(2**3)` (= 8)
|
|
|
|
MAX_ATTESTATIONS_ELECTRA*: uint64 = 8
|
2024-04-18 07:30:01 +00:00
|
|
|
# `uint64(2**0)` (= 1)
|
2024-06-15 22:15:27 +00:00
|
|
|
MAX_CONSOLIDATION_REQUESTS_PER_PAYLOAD*: uint64 = 1
|
2024-04-18 07:30:01 +00:00
|
|
|
|
|
|
|
# Execution
|
|
|
|
# ---------------------------------------------------------------
|
2024-04-16 18:09:39 +00:00
|
|
|
# [customized]
|
2024-06-15 22:15:27 +00:00
|
|
|
MAX_DEPOSIT_REQUESTS_PER_PAYLOAD* = 4
|
2024-04-18 07:30:01 +00:00
|
|
|
# [customized] 2**1 (= 2) withdrawal requests
|
|
|
|
MAX_WITHDRAWAL_REQUESTS_PER_PAYLOAD* = 2
|
|
|
|
|
|
|
|
# Withdrawals processing
|
|
|
|
# ---------------------------------------------------------------
|
|
|
|
# 2**0 ( = 1) pending withdrawals
|
|
|
|
MAX_PENDING_PARTIALS_PER_WITHDRAWALS_SWEEP* = 1
|