2023-05-25 07:55:00 +00:00
|
|
|
# beacon_chain
|
2024-01-20 11:19:47 +00:00
|
|
|
# Copyright (c) 2023-2024 Status Research & Development GmbH
|
2023-05-25 07:55:00 +00:00
|
|
|
# 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.
|
|
|
|
|
2024-02-21 19:44:48 +00:00
|
|
|
{.push raises: [].}
|
|
|
|
|
2023-03-11 00:28:19 +00:00
|
|
|
# Mainnet preset - Deneb
|
2024-05-09 05:03:10 +00:00
|
|
|
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.2/presets/mainnet/deneb.yaml
|
2023-01-12 17:58:42 +00:00
|
|
|
const
|
|
|
|
# `uint64(4096)`
|
|
|
|
FIELD_ELEMENTS_PER_BLOB*: uint64 = 4096
|
2023-05-25 07:55:00 +00:00
|
|
|
# `uint64(2**12)` (= 4096)
|
|
|
|
MAX_BLOB_COMMITMENTS_PER_BLOCK*: uint64 = 4096
|
2023-11-03 13:54:21 +00:00
|
|
|
# `uint64(6)`
|
2023-06-10 01:45:53 +00:00
|
|
|
MAX_BLOBS_PER_BLOCK*: uint64 = 6
|
2023-11-03 13:54:21 +00:00
|
|
|
# `floorlog2(get_generalized_index(BeaconBlockBody, 'blob_kzg_commitments')) + 1 + ceillog2(MAX_BLOB_COMMITMENTS_PER_BLOCK)` = 4 + 1 + 12 = 17
|
|
|
|
KZG_COMMITMENT_INCLUSION_PROOF_DEPTH* = 17
|