From ac96cbd58cb465c75277a7710cd5c76bf5c4b9b1 Mon Sep 17 00:00:00 2001 From: Etan Kissling Date: Fri, 3 Nov 2023 10:47:04 +0100 Subject: [PATCH] Sync Deneb preset with Ethereum L1 - Rename `eip4844.yaml` to `deneb.yaml` - Add `MAX_BLOB_COMMITMENTS_PER_BLOCK` (= 4096) - Add `KZG_COMMITMENT_INCLUSION_PROOF_DEPTH` (= 17) Note, this leaves `MAX_BLOBS_PER_BLOCK` at 4 (L1 has `6`). If this discrepancy is no longer intended, it should be addressed separately. --- presets/gnosis/deneb.yaml | 12 ++++++++++++ presets/gnosis/eip4844.yaml | 8 -------- 2 files changed, 12 insertions(+), 8 deletions(-) create mode 100644 presets/gnosis/deneb.yaml delete mode 100644 presets/gnosis/eip4844.yaml diff --git a/presets/gnosis/deneb.yaml b/presets/gnosis/deneb.yaml new file mode 100644 index 0000000..cb1f87a --- /dev/null +++ b/presets/gnosis/deneb.yaml @@ -0,0 +1,12 @@ +# Mainnet preset - Deneb + +# Misc +# --------------------------------------------------------------- +# `uint64(4096)` +FIELD_ELEMENTS_PER_BLOB: 4096 +# `uint64(2**12)` (= 4096) +MAX_BLOB_COMMITMENTS_PER_BLOCK: 4096 +# `uint64(2**2)` (= 4) +MAX_BLOBS_PER_BLOCK: 4 +# `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 diff --git a/presets/gnosis/eip4844.yaml b/presets/gnosis/eip4844.yaml deleted file mode 100644 index 3866e82..0000000 --- a/presets/gnosis/eip4844.yaml +++ /dev/null @@ -1,8 +0,0 @@ -# Mainnet preset - Phase0 - -# Misc -# --------------------------------------------------------------- -# `uint64(4096)` -FIELD_ELEMENTS_PER_BLOB: 4096 -# `uint64(2**2)` (= 4) -MAX_BLOBS_PER_BLOCK: 4