Skip to content

Commit

Permalink
Sync Deneb preset with Ethereum L1 (#17)
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
etan-status authored Nov 8, 2023
1 parent f3a9d77 commit c8b24c8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
12 changes: 12 additions & 0 deletions presets/gnosis/deneb.yaml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 0 additions & 8 deletions presets/gnosis/eip4844.yaml

This file was deleted.

0 comments on commit c8b24c8

Please sign in to comment.