Skip to content

Commit 408fb52

Browse files
committed
Merge remote-tracking branch 'upstream/dev' into cl-drives-blob-limit
2 parents c6090cc + 72061bb commit 408fb52

File tree

78 files changed

+943
-1154
lines changed

Some content is hidden

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

78 files changed

+943
-1154
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Publish docs
33
on:
44
push:
55
branches:
6-
- master
6+
- master
77
permissions:
88
contents: write
99
jobs:

.github/workflows/run-tests.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,18 @@ jobs:
6969
- name: Run linter for test generators
7070
run: make lint_generators
7171

72+
whitespace:
73+
runs-on: [self-hosted-ghr-custom, size-l-x64, profile-consensusSpecs]
74+
steps:
75+
- name: Checkout repository
76+
uses: actions/checkout@v4
77+
- name: Check for trailing whitespace
78+
run: |
79+
if git grep -n '[[:blank:]]$'; then
80+
echo "Trailing whitespace found. Please fix it."
81+
exit 1
82+
fi
83+
7284
pyspec-tests:
7385
runs-on: [self-hosted-ghr-custom, size-xl-x64, profile-consensusSpecs]
7486
needs: [lint,codespell,table_of_contents]
@@ -124,4 +136,10 @@ jobs:
124136
- name: Install pyspec requirements
125137
run: make install_test
126138
- name: Run generators with --modcheck
127-
run: make generate_tests modcheck=true
139+
run: make generate_tests modcheck=true 2>&1 | tee consensustestgen.log
140+
- name: Check for errors
141+
run: |
142+
if grep -q "\[ERROR\]" consensustestgen.log; then
143+
echo "There is an error in the log"
144+
exit 1
145+
fi

configs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Configurations
22

33
This directory contains a set of configurations used for testing, testnets, and mainnet.
4-
A client binary may be compiled for a specific `PRESET_BASE`,
4+
A client binary may be compiled for a specific `PRESET_BASE`,
55
and then load different configurations around that preset to participate in different networks or tests.
66

77
Standard configs:
@@ -24,7 +24,7 @@ In this case, the suffix on the new variable may be removed, and the old variabl
2424

2525
A previous iteration of forking made use of "timelines", but this collides with the definitions used in the spec (variables for special forking slots, etc.), and was not integrated sufficiently in any of the spec tools or implementations.
2626
Instead, the config essentially doubles as fork definition now, e.g. changing the value for `ALTAIR_FORK_EPOCH` changes the fork.
27-
27+
2828
## Format
2929

3030
Each preset and configuration is a key-value mapping.

configs/mainnet.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,11 @@ WHISK_PROPOSER_SELECTION_GAP: 2
161161

162162
# EIP7594
163163
NUMBER_OF_COLUMNS: 128
164+
NUMBER_OF_CUSTODY_GROUPS: 128
164165
DATA_COLUMN_SIDECAR_SUBNET_COUNT: 128
165166
MAX_REQUEST_DATA_COLUMN_SIDECARS: 16384
166167
SAMPLES_PER_SLOT: 8
167168
CUSTODY_REQUIREMENT: 4
168-
BLOB_SIDECAR_SUBNET_COUNT_EIP7594: 8
169169
MAX_BLOBS_PER_BLOCK_EIP7594: 8
170170
# `MAX_REQUEST_BLOCKS_DENEB * MAX_BLOBS_PER_BLOCK_EIP7594`
171171
MAX_REQUEST_BLOB_SIDECARS_EIP7594: 1024

configs/minimal.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,11 @@ WHISK_PROPOSER_SELECTION_GAP: 1
160160

161161
# EIP7594
162162
NUMBER_OF_COLUMNS: 128
163+
NUMBER_OF_CUSTODY_GROUPS: 128
163164
DATA_COLUMN_SIDECAR_SUBNET_COUNT: 128
164165
MAX_REQUEST_DATA_COLUMN_SIDECARS: 16384
165166
SAMPLES_PER_SLOT: 8
166167
CUSTODY_REQUIREMENT: 4
167-
BLOB_SIDECAR_SUBNET_COUNT_EIP7594: 8
168168
MAX_BLOBS_PER_BLOCK_EIP7594: 8
169169
# `MAX_REQUEST_BLOCKS_DENEB * MAX_BLOBS_PER_BLOCK_EIP7594`
170170
MAX_REQUEST_BLOB_SIDECARS_EIP7594: 1024

docs/docs/templates/beacon-chain-template.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -66,19 +66,3 @@ class CONTAINER_NAME(Container):
6666

6767

6868
### Block processing
69-
70-
71-
72-
73-
## Testing
74-
75-
*Note*: The function `initialize_beacon_state_from_eth1` is modified for pure <FORK_NAME> testing only.
76-
77-
```python
78-
def initialize_beacon_state_from_eth1(eth1_block_hash: Hash32,
79-
eth1_timestamp: uint64,
80-
deposits: Sequence[Deposit],
81-
execution_payload_header: ExecutionPayloadHeader=ExecutionPayloadHeader()
82-
) -> BeaconState:
83-
...
84-
```

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ theme:
77
- scheme: default
88
primary: black
99
toggle:
10-
icon: material/brightness-7
10+
icon: material/brightness-7
1111
name: Switch to dark mode
1212
- scheme: slate
1313
primary: black

presets/mainnet/eip6800.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Misc
44
# ---------------------------------------------------------------
5-
# `uint64(2**16)` (= 65,536)
5+
# `uint64(2**16)` (= 65,536)
66
MAX_STEMS: 65536
77
# `uint64(33)`
88
MAX_COMMITMENTS_PER_STEM: 33

presets/mainnet/electra.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ WHISTLEBLOWER_REWARD_QUOTIENT_ELECTRA: 4096
2929
MAX_ATTESTER_SLASHINGS_ELECTRA: 1
3030
# `uint64(2**3)` (= 8)
3131
MAX_ATTESTATIONS_ELECTRA: 8
32-
# `uint64(2**0)` (= 1)
33-
MAX_CONSOLIDATION_REQUESTS_PER_PAYLOAD: 1
32+
# `uint64(2**1)` (= 2)
33+
MAX_CONSOLIDATION_REQUESTS_PER_PAYLOAD: 2
3434

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

presets/minimal/eip6800.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Execution
44
# ---------------------------------------------------------------
5-
# `uint64(2**16)` (= 65,536)
5+
# `uint64(2**16)` (= 65,536)
66
MAX_STEMS: 65536
77
# `uint64(33)`
88
MAX_COMMITMENTS_PER_STEM: 33

0 commit comments

Comments
 (0)