Update to spec v1.6.0-alpha.5 (#7910)

- https://github.com/ethereum/consensus-specs/pull/4508
This commit is contained in:
Barnabas Busa
2025-08-27 05:59:21 +02:00
committed by GitHub
parent 8901c7417d
commit 2b33fe6620
4 changed files with 11 additions and 9 deletions

View File

@@ -4,7 +4,7 @@
# ---------------------------------------------------------------
# `uint64(4096)`
FIELD_ELEMENTS_PER_BLOB: 4096
# [customized]
MAX_BLOB_COMMITMENTS_PER_BLOCK: 32
# [customized] `floorlog2(get_generalized_index(BeaconBlockBody, 'blob_kzg_commitments')) + 1 + ceillog2(MAX_BLOB_COMMITMENTS_PER_BLOCK)` = 4 + 1 + 5 = 10
KZG_COMMITMENT_INCLUSION_PROOF_DEPTH: 10
# `uint64(4096)`
MAX_BLOB_COMMITMENTS_PER_BLOCK: 4096
# `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

View File

@@ -3,8 +3,8 @@ use crate::*;
use safe_arith::SafeArith;
use serde::{Deserialize, Serialize};
use ssz_types::typenum::{
U0, U1, U2, U4, U8, U10, U16, U17, U32, U64, U128, U256, U512, U625, U1024, U2048, U4096,
U8192, U65536, U131072, U262144, U1048576, U16777216, U33554432, U134217728, U1073741824,
U0, U1, U2, U4, U8, U16, U17, U32, U64, U128, U256, U512, U625, U1024, U2048, U4096, U8192,
U65536, U131072, U262144, U1048576, U16777216, U33554432, U134217728, U1073741824,
U1099511627776, UInt, bit::B0,
};
use std::fmt::{self, Debug};
@@ -490,8 +490,8 @@ impl EthSpec for MinimalEthSpec {
type MaxWithdrawalsPerPayload = U4;
type FieldElementsPerBlob = U4096;
type BytesPerBlob = U131072;
type MaxBlobCommitmentsPerBlock = U32;
type KzgCommitmentInclusionProofDepth = U10;
type MaxBlobCommitmentsPerBlock = U4096;
type KzgCommitmentInclusionProofDepth = U17;
type PendingPartialWithdrawalsLimit = U64;
type PendingConsolidationsLimit = U64;
type FieldElementsPerCell = U64;