Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion presets/mainnet/eip7732.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
PTC_SIZE: 512
# 2**2 (= 4)
MAX_PAYLOAD_ATTESTATIONS: 4
KZG_COMMITMENT_INCLUSION_PROOF_DEPTH_EIP7732: 13
# floorlog2(get_generalized_index(BeaconBlockBody, 'blob_kzg_commitments')) + 1 + ceillog2(MAX_BLOB_COMMITMENTS_PER_BLOCK) (= 8 + 1 + 12 = 21)
KZG_COMMITMENT_INCLUSION_PROOF_DEPTH_EIP7732: 21
1 change: 1 addition & 0 deletions presets/minimal/eip7732.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
PTC_SIZE: 2
# 2**2 (= 4)
MAX_PAYLOAD_ATTESTATIONS: 4
# floorlog2(get_generalized_index(BeaconBlockBody, 'blob_kzg_commitments')) + 1 + ceillog2(MAX_BLOB_COMMITMENTS_PER_BLOCK) (= 8 + 1 + 5 = 14)
KZG_COMMITMENT_INCLUSION_PROOF_DEPTH_EIP7732: 14
2 changes: 1 addition & 1 deletion specs/_features/eip7732/p2p-interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ The specification of these changes continues in the same format as the network s

| Name | Value | Description |
| ---------------------------------------------- | ------------ | ----------------------------------------------------------- |
| `KZG_COMMITMENT_INCLUSION_PROOF_DEPTH_EIP7732` | `13` **TBD** | Merkle proof depth for the `blob_kzg_commitments` list item |
| `KZG_COMMITMENT_INCLUSION_PROOF_DEPTH_EIP7732` | `21` **TBD** | Merkle proof depth for the `blob_kzg_commitments` list item |

### Configuration

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from eth2spec.test.context import (
spec_state_test,
with_altair_and_later,
with_altair_until_eip7732,
with_presets,
)
from eth2spec.test.helpers.attestations import (
Expand Down Expand Up @@ -135,7 +136,8 @@ def _get_greater_than_proposer_boost_score(spec, store, state, proposer_boost_ro
return proposer_score // base_effective_balance + 1


@with_altair_and_later
# TODO(jtraglia): Investigate why this doesn't work with eip7732
@with_altair_until_eip7732
@with_presets([MAINNET], reason="to create non-duplicate committee")
@spec_state_test
def test_ex_ante_attestations_is_greater_than_proposer_boost_with_boost(spec, state):
Expand Down Expand Up @@ -370,7 +372,8 @@ def _filter_participant_set(participants):
yield "steps", test_steps


@with_altair_and_later
# TODO(jtraglia): Investigate why this doesn't work with eip7732
@with_altair_until_eip7732
@with_presets([MAINNET], reason="to create non-duplicate committee")
@spec_state_test
def test_ex_ante_sandwich_with_boost_not_sufficient(spec, state):
Expand Down