Skip to content

Commit 12d95da

Browse files
committed
Merge branch 'dev' into pr3757
2 parents d8c486b + 0de1252 commit 12d95da

40 files changed

+1512
-962
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ tests/core/pyspec/eth2spec/deneb/
2424
tests/core/pyspec/eth2spec/electra/
2525
tests/core/pyspec/eth2spec/whisk/
2626
tests/core/pyspec/eth2spec/eip7594/
27+
tests/core/pyspec/eth2spec/eip6800/
2728

2829
# coverage reports
2930
.htmlcov

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ MARKDOWN_FILES = $(wildcard $(SPEC_DIR)/*/*.md) \
3535
$(wildcard $(SPEC_DIR)/_features/*/*/*.md) \
3636
$(wildcard $(SSZ_DIR)/*.md)
3737

38-
ALL_EXECUTABLE_SPEC_NAMES = phase0 altair bellatrix capella deneb electra whisk
38+
ALL_EXECUTABLE_SPEC_NAMES = phase0 altair bellatrix capella deneb electra whisk eip6800
3939
# The parameters for commands. Use `foreach` to avoid listing specs again.
4040
COVERAGE_SCOPE := $(foreach S,$(ALL_EXECUTABLE_SPEC_NAMES), --cov=eth2spec.$S.$(TEST_PRESET_TYPE))
4141
PYLINT_SCOPE := $(foreach S,$(ALL_EXECUTABLE_SPEC_NAMES), ./eth2spec/$S)

configs/mainnet.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ NUMBER_OF_COLUMNS: 128
159159
MAX_CELLS_IN_EXTENDED_MATRIX: 768
160160
DATA_COLUMN_SIDECAR_SUBNET_COUNT: 32
161161
MAX_REQUEST_DATA_COLUMN_SIDECARS: 16384
162+
SAMPLES_PER_SLOT: 8
163+
CUSTODY_REQUIREMENT: 1
164+
TARGET_NUMBER_OF_PEERS: 70
162165

163166
# [New in Electra:EIP7251]
164167
MIN_PER_EPOCH_CHURN_LIMIT_ELECTRA: 128000000000 # 2**7 * 10**9 (= 128,000,000,000)

configs/minimal.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,9 @@ NUMBER_OF_COLUMNS: 128
158158
MAX_CELLS_IN_EXTENDED_MATRIX: 768
159159
DATA_COLUMN_SIDECAR_SUBNET_COUNT: 32
160160
MAX_REQUEST_DATA_COLUMN_SIDECARS: 16384
161+
SAMPLES_PER_SLOT: 8
162+
CUSTODY_REQUIREMENT: 1
163+
TARGET_NUMBER_OF_PEERS: 70
161164

162165
# [New in Electra:EIP7251]
163166
MIN_PER_EPOCH_CHURN_LIMIT_ELECTRA: 64000000000 # 2**6 * 10**9 (= 64,000,000,000)

docs/docs/new-feature.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ You can refer to the previous fork's `fork.md` file.
5454
### 5. Make it executable
5555
- Update Pyspec [`constants.py`](https://github.com/ethereum/consensus-specs/blob/dev/tests/core/pyspec/eth2spec/test/helpers/constants.py) with the new feature name.
5656
- Update helpers for [`setup.py`](https://github.com/ethereum/consensus-specs/blob/dev/setup.py) for building the spec:
57-
- Update [`pysetup/constants.py`](https://github.com/ethereum/consensus-specs/blob/dev/constants.py) with the new feature name as Pyspec `constants.py` defined.
57+
- Update [`pysetup/constants.py`](https://github.com/ethereum/consensus-specs/blob/dev/pysetup/constants.py) with the new feature name as Pyspec `constants.py` defined.
5858
- Update [`pysetup/spec_builders/__init__.py`](https://github.com/ethereum/consensus-specs/blob/dev/pysetup/spec_builders/__init__.py). Implement a new `<FEATURE_NAME>SpecBuilder` in `pysetup/spec_builders/<FEATURE_NAME>.py` with the new feature name. e.g., `EIP9999SpecBuilder`. Append it to the `spec_builders` list.
5959
- Update [`pysetup/md_doc_paths.py`](https://github.com/ethereum/consensus-specs/blob/dev/pysetup/md_doc_paths.py): add the path of the new markdown files in `get_md_doc_paths` function if needed.
60-
- Update `PREVIOUS_FORK_OF` setting in both [`test/helpers/constants.py`](https://github.com/ethereum/consensus-specs/blob/dev/constants.py) and [`pysetup/md_doc_paths.py`](https://github.com/ethereum/consensus-specs/blob/dev/pysetup/md_doc_paths.py).
60+
- Update `PREVIOUS_FORK_OF` setting in both [`test/helpers/constants.py`](https://github.com/ethereum/consensus-specs/blob/dev/tests/core/pyspec/eth2spec/test/helpers/constants.py) and [`pysetup/md_doc_paths.py`](https://github.com/ethereum/consensus-specs/blob/dev/pysetup/md_doc_paths.py).
6161
- NOTE: since these two modules (the pyspec itself and the spec builder tool) must be separate, the fork sequence setting has to be defined again.
6262

6363
## B: Make it executable for pytest and test generator

presets/mainnet/eip6800.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Mainnet preset - EIP6800
2+
3+
# Misc
4+
# ---------------------------------------------------------------
5+
# `uint64(2**16)` (= 65,536)
6+
MAX_STEMS: 65536
7+
# `uint64(33)`
8+
MAX_COMMITMENTS_PER_STEM: 33
9+
# `uint64(2**8)` (= 256)
10+
VERKLE_WIDTH: 256
11+
# `uint64(2**3)` (= 8)
12+
IPA_PROOF_DEPTH: 8

presets/mainnet/electra.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ MAX_ATTESTER_SLASHINGS_ELECTRA: 1
3030
# `uint64(2**3)` (= 8)
3131
MAX_ATTESTATIONS_ELECTRA: 8
3232
# `uint64(2**0)` (= 1)
33-
MAX_CONSOLIDATIONS: 1
33+
MAX_CONSOLIDATION_REQUESTS_PER_PAYLOAD: 1
3434

3535
# Execution
3636
# ---------------------------------------------------------------

presets/minimal/eip6800.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Minimal preset - EIP6800
2+
3+
# Execution
4+
# ---------------------------------------------------------------
5+
# `uint64(2**16)` (= 65,536)
6+
MAX_STEMS: 65536
7+
# `uint64(33)`
8+
MAX_COMMITMENTS_PER_STEM: 33
9+
# `uint64(2**8)` (= 256)
10+
VERKLE_WIDTH: 256
11+
# `uint64(2**3)` (= 8)
12+
IPA_PROOF_DEPTH: 8

presets/minimal/electra.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ MAX_ATTESTER_SLASHINGS_ELECTRA: 1
3030
# `uint64(2**3)` (= 8)
3131
MAX_ATTESTATIONS_ELECTRA: 8
3232
# `uint64(2**0)` (= 1)
33-
MAX_CONSOLIDATIONS: 1
33+
MAX_CONSOLIDATION_REQUESTS_PER_PAYLOAD: 1
3434

3535
# Execution
3636
# ---------------------------------------------------------------

pysetup/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
DENEB = 'deneb'
77
ELECTRA = 'electra'
88
EIP7594 = 'eip7594'
9+
EIP6800 = 'eip6800'
910
WHISK = 'whisk'
1011

1112

12-
1313
# The helper functions that are used when defining constants
1414
CONSTANT_DEP_SUNDRY_CONSTANTS_FUNCTIONS = '''
1515
def ceillog2(x: int) -> uint64:

0 commit comments

Comments
 (0)