Skip to content

Commit aba6345

Browse files
authored
Merge pull request #3615 from ethereum/init-electra
Init Electra (EIP6110 + EIP7002)
2 parents 93dba67 + ab8815b commit aba6345

File tree

41 files changed

+211
-510
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+211
-510
lines changed

.circleci/config.yml

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ jobs:
155155
command: make citest fork=deneb
156156
- store_test_results:
157157
path: tests/core/pyspec/test-reports
158-
test-eip6110:
158+
test-electra:
159159
docker:
160160
- image: circleci/python:3.9
161161
working_directory: ~/specs-repo
@@ -165,20 +165,7 @@ jobs:
165165
- restore_pyspec_cached_venv
166166
- run:
167167
name: Run py-tests
168-
command: make citest fork=eip6110
169-
- store_test_results:
170-
path: tests/core/pyspec/test-reports
171-
test-eip7002:
172-
docker:
173-
- image: circleci/python:3.9
174-
working_directory: ~/specs-repo
175-
steps:
176-
- restore_cache:
177-
key: v3-specs-repo-{{ .Branch }}-{{ .Revision }}
178-
- restore_pyspec_cached_venv
179-
- run:
180-
name: Run py-tests
181-
command: make citest fork=eip7002
168+
command: make citest fork=electra
182169
- store_test_results:
183170
path: tests/core/pyspec/test-reports
184171
test-eip7549:
@@ -340,10 +327,7 @@ workflows:
340327
- test-deneb:
341328
requires:
342329
- install_pyspec_test
343-
- test-eip6110:
344-
requires:
345-
- install_pyspec_test
346-
- test-eip7002:
330+
- test-electra:
347331
requires:
348332
- install_pyspec_test
349333
- test-eip7549:

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
needs: [preclear,lint,codespell,table_of_contents]
7272
strategy:
7373
matrix:
74-
version: ["phase0", "altair", "bellatrix", "capella", "deneb", "eip6110", "eip7002", "eip7549", "whisk", "eip7594"]
74+
version: ["phase0", "altair", "bellatrix", "capella", "deneb", "electra", "eip7549", "whisk", "eip7594"]
7575
steps:
7676
- name: Checkout this repo
7777
uses: actions/[email protected]

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ tests/core/pyspec/eth2spec/altair/
2121
tests/core/pyspec/eth2spec/bellatrix/
2222
tests/core/pyspec/eth2spec/capella/
2323
tests/core/pyspec/eth2spec/deneb/
24-
tests/core/pyspec/eth2spec/eip6110/
25-
tests/core/pyspec/eth2spec/eip7002/
24+
tests/core/pyspec/eth2spec/electra/
2625
tests/core/pyspec/eth2spec/eip7549/
2726
tests/core/pyspec/eth2spec/whisk/
2827
tests/core/pyspec/eth2spec/eip7251/

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 eip6110 eip7002 eip7549 whisk
38+
ALL_EXECUTABLE_SPEC_NAMES = phase0 altair bellatrix capella deneb electra eip7549 whisk
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)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ Features are researched and developed in parallel, and then consolidated into se
2626
### In-development Specifications
2727
| Code Name or Topic | Specs | Notes |
2828
| - | - | - |
29+
| Electra | <ul><li>Core</li><ul><li>[Beacon Chain changes](specs/electra/beacon-chain.md)</li><li>[EIP-6110 fork](specs/electra/fork.md)</li></ul><li>Additions</li><ul><li>[Honest validator guide changes](specs/electra/validator.md)</li></ul></ul> |
2930
| Sharding (outdated) | <ul><li>Core</li><ul><li>[Beacon Chain changes](specs/_features/sharding/beacon-chain.md)</li></ul><li>Additions</li><ul><li>[P2P networking](specs/_features/sharding/p2p-interface.md)</li></ul></ul> |
3031
| Custody Game (outdated) | <ul><li>Core</li><ul><li>[Beacon Chain changes](specs/_features/custody_game/beacon-chain.md)</li></ul><li>Additions</li><ul><li>[Honest validator guide changes](specs/_features/custody_game/validator.md)</li></ul></ul> | Dependent on sharding |
3132
| Data Availability Sampling (outdated) | <ul><li>Core</li><ul><li>[Core types and functions](specs/_features/das/das-core.md)</li><li>[Fork choice changes](specs/_features/das/fork-choice.md)</li></ul><li>Additions</li><ul><li>[P2P Networking](specs/_features/das/p2p-interface.md)</li><li>[Sampling process](specs/_features/das/sampling.md)</li></ul></ul> | <ul><li> Dependent on sharding</li><li>[Technical explainer](https://hackmd.io/@HWeNw8hNRimMm2m2GH56Cw/B1YJPGkpD)</li></ul> |
32-
| EIP-6110 | <ul><li>Core</li><ul><li>[Beacon Chain changes](specs/_features/eip6110//beacon-chain.md)</li><li>[EIP-6110 fork](specs/_features/eip6110/fork.md)</li></ul><li>Additions</li><ul><li>[Honest validator guide changes](specs/_features/eip6110/validator.md)</li></ul></ul> |
3333

3434
### Accompanying documents can be found in [specs](specs) and include:
3535

configs/mainnet.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,6 @@ DENEB_FORK_EPOCH: 269568 # March 13, 2024, 01:55:35pm UTC
5353
# Electra
5454
ELECTRA_FORK_VERSION: 0x05000000
5555
ELECTRA_FORK_EPOCH: 18446744073709551615
56-
# EIP6110
57-
EIP6110_FORK_VERSION: 0x06000000 # temporary stub
58-
EIP6110_FORK_EPOCH: 18446744073709551615
59-
# EIP7002
60-
EIP7002_FORK_VERSION: 0x07000000 # temporary stub
61-
EIP7002_FORK_EPOCH: 18446744073709551615
6256
# EIP7251
6357
EIP7251_FORK_VERSION: 0x06000000 # temporary stub
6458
EIP7251_FORK_EPOCH: 18446744073709551615

configs/minimal.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,6 @@ DENEB_FORK_EPOCH: 18446744073709551615
5252
# Electra
5353
ELECTRA_FORK_VERSION: 0x05000001
5454
ELECTRA_FORK_EPOCH: 18446744073709551615
55-
# EIP6110
56-
EIP6110_FORK_VERSION: 0x06000001
57-
EIP6110_FORK_EPOCH: 18446744073709551615
58-
# EIP7002
59-
EIP7002_FORK_VERSION: 0x07000001
60-
EIP7002_FORK_EPOCH: 18446744073709551615
6155
# EIP7251
6256
EIP7251_FORK_VERSION: 0x06000001 # temporary stub
6357
EIP7251_FORK_EPOCH: 18446744073709551615
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
# Mainnet preset - EIP6110
1+
# Mainnet preset - Electra
22

33
# Execution
44
# ---------------------------------------------------------------
55
# 2**13 (= 8192) receipts
66
MAX_DEPOSIT_RECEIPTS_PER_PAYLOAD: 8192
7+
# 2**4 (= 16) exits
8+
MAX_EXECUTION_LAYER_EXITS: 16
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
# Minimal preset - EIP6110
1+
# Minimal preset - Electra
22

33
# Execution
44
# ---------------------------------------------------------------
55
# [customized]
66
MAX_DEPOSIT_RECEIPTS_PER_PAYLOAD: 4
7+
# 2**4 (= 16) exits
8+
MAX_EXECUTION_LAYER_EXITS: 16

pysetup/constants.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
BELLATRIX = 'bellatrix'
55
CAPELLA = 'capella'
66
DENEB = 'deneb'
7-
EIP6110 = 'eip6110'
8-
EIP7002 = 'eip7002'
7+
ELECTRA = 'electra'
98
EIP7251 = 'eip7251'
109
EIP7549 = 'eip7549'
1110
WHISK = 'whisk'

0 commit comments

Comments
 (0)