Skip to content

Commit 483bafa

Browse files
authored
Merge pull request #3653 from ralexstokes/init-electra-rebase
Add EIP-7549 to Electra
2 parents aba6345 + 9edfb29 commit 483bafa

File tree

30 files changed

+278
-493
lines changed

30 files changed

+278
-493
lines changed

.circleci/config.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -168,19 +168,6 @@ jobs:
168168
command: make citest fork=electra
169169
- store_test_results:
170170
path: tests/core/pyspec/test-reports
171-
test-eip7549:
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=eip7549
182-
- store_test_results:
183-
path: tests/core/pyspec/test-reports
184171
test-whisk:
185172
docker:
186173
- image: circleci/python:3.9
@@ -330,9 +317,6 @@ workflows:
330317
- test-electra:
331318
requires:
332319
- install_pyspec_test
333-
- test-eip7549:
334-
requires:
335-
- install_pyspec_test
336320
- test-whisk:
337321
requires:
338322
- install_pyspec_test
@@ -344,7 +328,7 @@ workflows:
344328
- lint:
345329
requires:
346330
- install_pyspec_test
347-
# 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.
348332
# - install_deposit_contract_web3_tester:
349333
# requires:
350334
# - 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", "electra", "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: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ tests/core/pyspec/eth2spec/bellatrix/
2222
tests/core/pyspec/eth2spec/capella/
2323
tests/core/pyspec/eth2spec/deneb/
2424
tests/core/pyspec/eth2spec/electra/
25-
tests/core/pyspec/eth2spec/eip7549/
2625
tests/core/pyspec/eth2spec/whisk/
2726
tests/core/pyspec/eth2spec/eip7251/
2827
tests/core/pyspec/eth2spec/eip7594/

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 electra 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

configs/mainnet.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ ELECTRA_FORK_EPOCH: 18446744073709551615
5656
# EIP7251
5757
EIP7251_FORK_VERSION: 0x06000000 # temporary stub
5858
EIP7251_FORK_EPOCH: 18446744073709551615
59-
# EIP7549
60-
EIP7549_FORK_VERSION: 0x06000000 # temporary stub
61-
EIP7549_FORK_EPOCH: 18446744073709551615
6259
# WHISK
6360
WHISK_FORK_VERSION: 0x08000000 # temporary stub
6461
WHISK_FORK_EPOCH: 18446744073709551615

configs/minimal.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ ELECTRA_FORK_EPOCH: 18446744073709551615
5555
# EIP7251
5656
EIP7251_FORK_VERSION: 0x06000001 # temporary stub
5757
EIP7251_FORK_EPOCH: 18446744073709551615
58-
# EIP7549
59-
EIP7549_FORK_VERSION: 0x06000001 # temporary stub
60-
EIP7549_FORK_EPOCH: 18446744073709551615
6158
# WHISK
6259
WHISK_FORK_VERSION: 0x08000001
6360
WHISK_FORK_EPOCH: 18446744073709551615

presets/mainnet/eip7549.yaml

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

presets/mainnet/electra.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Mainnet preset - Electra
22

3+
# # Max operations per block
4+
# ---------------------------------------------------------------
5+
# `uint64(2**0)` (= 1)
6+
MAX_ATTESTER_SLASHINGS_ELECTRA: 1
7+
# `uint64(2 * 3)` (= 8)
8+
MAX_ATTESTATIONS_ELECTRA: 8
9+
310
# Execution
411
# ---------------------------------------------------------------
512
# 2**13 (= 8192) receipts

presets/minimal/eip7549.yaml

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

presets/minimal/electra.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Minimal preset - Electra
22

3+
# # Max operations per block
4+
# ---------------------------------------------------------------
5+
# `uint64(2**0)` (= 1)
6+
MAX_ATTESTER_SLASHINGS_ELECTRA: 1
7+
# `uint64(2 * 3)` (= 8)
8+
MAX_ATTESTATIONS_ELECTRA: 8
9+
310
# Execution
411
# ---------------------------------------------------------------
512
# [customized]

0 commit comments

Comments
 (0)