Skip to content

Commit ccc4e67

Browse files
committed
Add new vars defined in consensus-spec
1 parent 8abc5e1 commit ccc4e67

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

config/fieldparams/mainnet.go

+5
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,9 @@ const (
5454
MaxRandomByte = uint64(1<<8 - 1) // MaxRandomByte defines max for a random byte using for proposer and sync committee sampling.
5555
MaxRandomValueElectra = uint64(1<<16 - 1) // MaxRandomValueElectra defines max for a random value using for proposer and sync committee sampling.
5656
NumberOfColumns = 128 // NumberOfColumns refers to the specified number of data columns that can exist in a network.
57+
58+
// Introduced in Fulu network upgrade.
59+
FieldElementsPerCell = 64 // FieldElementsPerCell refers to the specified number of field elements that can exist in a cell.
60+
FieldElementsPerExtBlob = 8192 // FieldElementsPerExtBlob refers to the specified number of field elements that can exist in an extended blob.
61+
KZGCommitmentsInclusionProofDepth = 4 // KZGCommitmentsInclusionProofDepth refers to the specified depth of the KZG commitments inclusion proof.
5762
)

config/fieldparams/minimal.go

+5
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,9 @@ const (
5454
MaxRandomByte = uint64(1<<8 - 1) // Maximum value for a random value using for proposer and sync committee sampling.
5555
MaxRandomValueElectra = uint64(1<<16 - 1) // Maximum value for a random value using for proposer and sync committee sampling.
5656
NumberOfColumns = 128 // NumberOfColumns refers to the specified number of data columns that can exist in a network.
57+
58+
// Introduced in Fulu network upgrade.
59+
FieldElementsPerCell = 64 // FieldElementsPerCell refers to the specified number of field elements that can exist in a cell.
60+
FieldElementsPerExtBlob = 8192 // FieldElementsPerExtBlob refers to the specified number of field elements that can exist in an extended blob.
61+
KZGCommitmentsInclusionProofDepth = 4 // KZGCommitmentsInclusionProofDepth refers to the specified depth of the KZG commitments inclusion proof.
5762
)

proto/ssz_proto_library.bzl

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ mainnet = {
2525
"extra_data.size": "32",
2626
"max_blobs_per_block.size": "6",
2727
"max_blob_commitments.size": "4096",
28+
"max_cell_proofs_length.size": "33554432", # FIELD_ELEMENTS_PER_EXT_BLOB * MAX_BLOB_COMMITMENTS_PER_BLOCK
2829
"kzg_commitment_inclusion_proof_depth.size": "17",
2930
"max_withdrawal_requests_per_payload.size": "16",
3031
"max_deposit_requests_per_payload.size": "8192",
@@ -62,6 +63,7 @@ minimal = {
6263
"extra_data.size": "32",
6364
"max_blobs_per_block.size": "6",
6465
"max_blob_commitments.size": "32",
66+
"max_cell_proofs_length.size": "33554432", # FIELD_ELEMENTS_PER_EXT_BLOB * MAX_BLOB_COMMITMENTS_PER_BLOCK
6567
"kzg_commitment_inclusion_proof_depth.size": "10",
6668
"max_withdrawal_requests_per_payload.size": "2",
6769
"max_deposit_requests_per_payload.size": "4",

0 commit comments

Comments
 (0)