Skip to content

Commit 4223bc0

Browse files
committed
Merge branch 'dev' into pr3776
2 parents 79d67ba + 0de1252 commit 4223bc0

File tree

24 files changed

+1338
-941
lines changed

24 files changed

+1338
-941
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)

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:

pysetup/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def combine_dicts(old_dict: Dict[str, T], new_dict: Dict[str, T]) -> Dict[str, T
178178

179179
ignored_dependencies = [
180180
'bit', 'boolean', 'Vector', 'List', 'Container', 'BLSPubkey', 'BLSSignature',
181-
'Bytes1', 'Bytes4', 'Bytes8', 'Bytes20', 'Bytes32', 'Bytes48', 'Bytes96', 'Bitlist', 'Bitvector',
181+
'Bytes1', 'Bytes4', 'Bytes8', 'Bytes20', 'Bytes31', 'Bytes32', 'Bytes48', 'Bytes96', 'Bitlist', 'Bitvector',
182182
'uint8', 'uint16', 'uint32', 'uint64', 'uint128', 'uint256',
183183
'bytes', 'byte', 'ByteList', 'ByteVector',
184184
'Dict', 'dict', 'field', 'ceillog2', 'floorlog2', 'Set',

pysetup/md_doc_paths.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
ELECTRA,
1010
WHISK,
1111
EIP7594,
12+
EIP6800,
1213
)
1314

1415

@@ -21,6 +22,7 @@
2122
ELECTRA: DENEB,
2223
WHISK: CAPELLA,
2324
EIP7594: DENEB,
25+
EIP6800: DENEB,
2426
}
2527

2628
ALL_FORKS = list(PREVIOUS_FORK_OF.keys())

0 commit comments

Comments
 (0)