Skip to content

Commit 38dfd4a

Browse files
committed
Merge remote-tracking branch 'upstream/dev' into activation_rate_limiting
2 parents 805c0e1 + 24cbbe2 commit 38dfd4a

File tree

94 files changed

+3141
-3258
lines changed

Some content is hidden

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

94 files changed

+3141
-3258
lines changed

.circleci/config.yml

Lines changed: 4 additions & 36 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,33 +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
182-
- store_test_results:
183-
path: tests/core/pyspec/test-reports
184-
test-eip7549:
185-
docker:
186-
- image: circleci/python:3.9
187-
working_directory: ~/specs-repo
188-
steps:
189-
- restore_cache:
190-
key: v3-specs-repo-{{ .Branch }}-{{ .Revision }}
191-
- restore_pyspec_cached_venv
192-
- run:
193-
name: Run py-tests
194-
command: make citest fork=eip7549
168+
command: make citest fork=electra
195169
- store_test_results:
196170
path: tests/core/pyspec/test-reports
197171
test-whisk:
@@ -340,13 +314,7 @@ workflows:
340314
- test-deneb:
341315
requires:
342316
- install_pyspec_test
343-
- test-eip6110:
344-
requires:
345-
- install_pyspec_test
346-
- test-eip7002:
347-
requires:
348-
- install_pyspec_test
349-
- test-eip7549:
317+
- test-electra:
350318
requires:
351319
- install_pyspec_test
352320
- test-whisk:
@@ -360,7 +328,7 @@ workflows:
360328
- lint:
361329
requires:
362330
- install_pyspec_test
363-
# NOTE: Since phase 0 has been launched, we disabled the deposit contract tests.
331+
# NOTE: Since phase 0 has been launched, we disabled the deposit contract tests.
364332
# - install_deposit_contract_web3_tester:
365333
# requires:
366334
# - checkout_specs

.github/workflows/run-tests.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ env:
1010
on:
1111
push:
1212
branches:
13-
- dev
13+
- dev
1414
- master
15-
pull_request:
15+
pull_request:
1616
workflow_dispatch:
1717
inputs:
1818
test_preset_type:
@@ -71,22 +71,22 @@ 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", "whisk", "eip7594"]
7575
steps:
7676
- name: Checkout this repo
7777
uses: actions/[email protected]
7878
- name: set TEST_PRESET_TYPE
79-
if: github.event.inputs.test_preset_type != ''
79+
if: github.event.inputs.test_preset_type != ''
8080
run: |
8181
echo "spec_test_preset_type=${{ github.event.inputs.test_preset_type || env.TEST_PRESET_TYPE }}" >> $GITHUB_ENV
8282
- name: set TEST_PRESET_TYPE
8383
if: ${{ (github.event_name == 'push' && github.ref_name != 'master') || github.event_name == 'pull_request' }}
8484
run: |
85-
echo "spec_test_preset_type=${{ env.TEST_PRESET_TYPE}}" >> $GITHUB_ENV
85+
echo "spec_test_preset_type=${{ env.TEST_PRESET_TYPE}}" >> $GITHUB_ENV
8686
- name: set TEST_PRESET_TYPE
8787
if: ${{ github.event_name == 'push' && github.ref_name == 'master' }}
8888
run: |
89-
echo "spec_test_preset_type=mainnet" >> $GITHUB_ENV
89+
echo "spec_test_preset_type=mainnet" >> $GITHUB_ENV
9090
- name: set TEST_PRESET_TYPE
9191
if: github.event.schedule=='0 0 * * *'
9292
run: |

.gitignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,8 @@ 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/
26-
tests/core/pyspec/eth2spec/eip7549/
24+
tests/core/pyspec/eth2spec/electra/
2725
tests/core/pyspec/eth2spec/whisk/
28-
tests/core/pyspec/eth2spec/eip7251/
2926
tests/core/pyspec/eth2spec/eip7594/
3027

3128
# coverage reports

Makefile

Lines changed: 2 additions & 2 deletions
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 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)
@@ -244,5 +244,5 @@ build_docs: copy_docs
244244
mkdocs build
245245

246246
serve_docs:
247-
. venv/bin/activate;
247+
. venv/bin/activate;
248248
mkdocs serve

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: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -53,18 +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
62-
# EIP7251
63-
EIP7251_FORK_VERSION: 0x06000000 # temporary stub
64-
EIP7251_FORK_EPOCH: 18446744073709551615
65-
# EIP7549
66-
EIP7549_FORK_VERSION: 0x06000000 # temporary stub
67-
EIP7549_FORK_EPOCH: 18446744073709551615
6856
# WHISK
6957
WHISK_FORK_VERSION: 0x08000000 # temporary stub
7058
WHISK_FORK_EPOCH: 18446744073709551615
@@ -172,6 +160,6 @@ NUMBER_OF_COLUMNS: 128
172160
DATA_COLUMN_SIDECAR_SUBNET_COUNT: 32
173161
MAX_REQUEST_DATA_COLUMN_SIDECARS: 16384
174162

175-
# [New in EIP7251]
176-
MIN_PER_EPOCH_CHURN_LIMIT_EIP7251: 128000000000 # 2**7 * 10**9 (= 128,000,000,000)
163+
# [New in Electra:EIP7251]
164+
MIN_PER_EPOCH_CHURN_LIMIT_ELECTRA: 128000000000 # 2**7 * 10**9 (= 128,000,000,000)
177165
MAX_PER_EPOCH_ACTIVATION_EXIT_CHURN_LIMIT: 256000000000 # 2**8 * 10**9 (= 256,000,000,000)

configs/minimal.yaml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +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
61-
# EIP7251
62-
EIP7251_FORK_VERSION: 0x06000001 # temporary stub
63-
EIP7251_FORK_EPOCH: 18446744073709551615
64-
# EIP7549
65-
EIP7549_FORK_VERSION: 0x06000001 # temporary stub
66-
EIP7549_FORK_EPOCH: 18446744073709551615
6755
# WHISK
6856
WHISK_FORK_VERSION: 0x08000001
6957
WHISK_FORK_EPOCH: 18446744073709551615
@@ -170,6 +158,6 @@ NUMBER_OF_COLUMNS: 128
170158
DATA_COLUMN_SIDECAR_SUBNET_COUNT: 32
171159
MAX_REQUEST_DATA_COLUMN_SIDECARS: 16384
172160

173-
# [New in EIP7251]
174-
MIN_PER_EPOCH_CHURN_LIMIT_EIP7251: 64000000000 # 2**6 * 10**9 (= 64,000,000,000)
161+
# [New in Electra:EIP7251]
162+
MIN_PER_EPOCH_CHURN_LIMIT_ELECTRA: 64000000000 # 2**6 * 10**9 (= 64,000,000,000)
175163
MAX_PER_EPOCH_ACTIVATION_EXIT_CHURN_LIMIT: 128000000000 # 2**7 * 10**9 (= 128,000,000,000)

presets/mainnet/eip6110.yaml

Lines changed: 0 additions & 6 deletions
This file was deleted.

presets/mainnet/eip7549.yaml

Lines changed: 0 additions & 8 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,40 @@
1-
# Mainnet preset - EIP7251
1+
# Mainnet preset - Electra
22

33
# Gwei values
44
# ---------------------------------------------------------------
55
# 2**5 * 10**9 (= 32,000,000,000) Gwei
66
MIN_ACTIVATION_BALANCE: 32000000000
77
# 2**11 * 10**9 (= 2,048,000,000,000) Gwei
8-
MAX_EFFECTIVE_BALANCE_EIP7251: 2048000000000
8+
MAX_EFFECTIVE_BALANCE_ELECTRA: 2048000000000
99

1010
# State list lengths
1111
# ---------------------------------------------------------------
12+
# `uint64(2**27)` (= 134,217,728)
1213
PENDING_BALANCE_DEPOSITS_LIMIT: 134217728
14+
# `uint64(2**27)` (= 134,217,728)
1315
PENDING_PARTIAL_WITHDRAWALS_LIMIT: 134217728
16+
# `uint64(2**18)` (= 262,144)
1417
PENDING_CONSOLIDATIONS_LIMIT: 262144
1518

1619
# Reward and penalty quotients
1720
# ---------------------------------------------------------------
18-
MIN_SLASHING_PENALTY_QUOTIENT_EIP7251: 4096
19-
WHISTLEBLOWER_REWARD_QUOTIENT_EIP7251: 4096
21+
# `uint64(2**12)` (= 4,096)
22+
MIN_SLASHING_PENALTY_QUOTIENT_ELECTRA: 4096
23+
# `uint64(2**12)` (= 4,096)
24+
WHISTLEBLOWER_REWARD_QUOTIENT_ELECTRA: 4096
2025

21-
# Max operations per block
26+
# # Max operations per block
2227
# ---------------------------------------------------------------
28+
# `uint64(2**0)` (= 1)
29+
MAX_ATTESTER_SLASHINGS_ELECTRA: 1
30+
# `uint64(2**3)` (= 8)
31+
MAX_ATTESTATIONS_ELECTRA: 8
32+
# `uint64(2**0)` (= 1)
2333
MAX_CONSOLIDATIONS: 1
2434

2535
# Execution
2636
# ---------------------------------------------------------------
27-
# 2**3 (= 8) partial withdrawals
28-
MAX_PARTIAL_WITHDRAWALS_PER_PAYLOAD: 8
37+
# 2**13 (= 8192) receipts
38+
MAX_DEPOSIT_RECEIPTS_PER_PAYLOAD: 8192
39+
# 2**4 (= 16) withdrawal requests
40+
MAX_WITHDRAWAL_REQUESTS_PER_PAYLOAD: 16

0 commit comments

Comments
 (0)