mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 09:16:00 +00:00
add max blob commitments per block
This commit is contained in:
@@ -9,7 +9,8 @@ use superstruct::superstruct;
|
|||||||
use test_random_derive::TestRandom;
|
use test_random_derive::TestRandom;
|
||||||
use tree_hash_derive::TreeHash;
|
use tree_hash_derive::TreeHash;
|
||||||
|
|
||||||
pub type KzgCommitments<T> = VariableList<KzgCommitment, <T as EthSpec>::MaxBlobsPerBlock>;
|
pub type KzgCommitments<T> =
|
||||||
|
VariableList<KzgCommitment, <T as EthSpec>::MaxBlobCommitmentsPerBlock>;
|
||||||
|
|
||||||
/// The body of a `BeaconChain` block, containing operations.
|
/// The body of a `BeaconChain` block, containing operations.
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -106,6 +106,7 @@ pub trait EthSpec:
|
|||||||
* New in Deneb
|
* New in Deneb
|
||||||
*/
|
*/
|
||||||
type MaxBlobsPerBlock: Unsigned + Clone + Sync + Send + Debug + PartialEq + Unpin;
|
type MaxBlobsPerBlock: Unsigned + Clone + Sync + Send + Debug + PartialEq + Unpin;
|
||||||
|
type MaxBlobCommitmentsPerBlock: Unsigned + Clone + Sync + Send + Debug + PartialEq + Unpin;
|
||||||
type FieldElementsPerBlob: Unsigned + Clone + Sync + Send + Debug + PartialEq;
|
type FieldElementsPerBlob: Unsigned + Clone + Sync + Send + Debug + PartialEq;
|
||||||
type BytesPerFieldElement: Unsigned + Clone + Sync + Send + Debug + PartialEq;
|
type BytesPerFieldElement: Unsigned + Clone + Sync + Send + Debug + PartialEq;
|
||||||
/*
|
/*
|
||||||
@@ -300,6 +301,7 @@ impl EthSpec for MainnetEthSpec {
|
|||||||
type MinGasLimit = U5000;
|
type MinGasLimit = U5000;
|
||||||
type MaxExtraDataBytes = U32;
|
type MaxExtraDataBytes = U32;
|
||||||
type MaxBlobsPerBlock = U4;
|
type MaxBlobsPerBlock = U4;
|
||||||
|
type MaxBlobCommitmentsPerBlock = U4096;
|
||||||
type BytesPerFieldElement = U32;
|
type BytesPerFieldElement = U32;
|
||||||
type FieldElementsPerBlob = U4096;
|
type FieldElementsPerBlob = U4096;
|
||||||
type BytesPerBlob = U131072;
|
type BytesPerBlob = U131072;
|
||||||
@@ -335,6 +337,7 @@ impl EthSpec for MinimalEthSpec {
|
|||||||
type MaxWithdrawalsPerPayload = U4;
|
type MaxWithdrawalsPerPayload = U4;
|
||||||
type FieldElementsPerBlob = U4; //FIXME(sean) this is spec'd out currently but will likely change
|
type FieldElementsPerBlob = U4; //FIXME(sean) this is spec'd out currently but will likely change
|
||||||
type BytesPerBlob = U128; //FIXME(sean) this is spec'd out currently but will likely change
|
type BytesPerBlob = U128; //FIXME(sean) this is spec'd out currently but will likely change
|
||||||
|
type MaxBlobCommitmentsPerBlock = U16;
|
||||||
|
|
||||||
params_from_eth_spec!(MainnetEthSpec {
|
params_from_eth_spec!(MainnetEthSpec {
|
||||||
JustificationBitsLength,
|
JustificationBitsLength,
|
||||||
@@ -404,6 +407,7 @@ impl EthSpec for GnosisEthSpec {
|
|||||||
type MaxBlsToExecutionChanges = U16;
|
type MaxBlsToExecutionChanges = U16;
|
||||||
type MaxWithdrawalsPerPayload = U8;
|
type MaxWithdrawalsPerPayload = U8;
|
||||||
type MaxBlobsPerBlock = U4;
|
type MaxBlobsPerBlock = U4;
|
||||||
|
type MaxBlobCommitmentsPerBlock = U4096;
|
||||||
type FieldElementsPerBlob = U4096;
|
type FieldElementsPerBlob = U4096;
|
||||||
type BytesPerFieldElement = U32;
|
type BytesPerFieldElement = U32;
|
||||||
type BytesPerBlob = U131072;
|
type BytesPerBlob = U131072;
|
||||||
|
|||||||
Reference in New Issue
Block a user