Skip to content

Commit 7a6770a

Browse files
fradamtjtraglia
andcommitted
fix headers
Co-authored-by: Justin Traglia <[email protected]>
1 parent 37c08a3 commit 7a6770a

File tree

4 files changed

+24
-21
lines changed

4 files changed

+24
-21
lines changed

specs/_features/eip7594/das-core.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
- [Containers](#containers)
1919
- [`DataColumnSidecar`](#datacolumnsidecar)
2020
- [`MatrixEntry`](#matrixentry)
21-
- [Helper functions](#helper-functions)
22-
- [`get_custody_columns`](#get_custody_columns)
23-
- [`compute_extended_matrix`](#compute_extended_matrix)
24-
- [`recover_matrix`](#recover_matrix)
25-
- [`get_data_column_sidecars`](#get_data_column_sidecars)
21+
- [Helper functions](#helper-functions)
22+
- [`get_custody_columns`](#get_custody_columns)
23+
- [`compute_extended_matrix`](#compute_extended_matrix)
24+
- [`recover_matrix`](#recover_matrix)
25+
- [`get_data_column_sidecars`](#get_data_column_sidecars)
2626
- [Custody](#custody)
2727
- [Custody requirement](#custody-requirement)
2828
- [Public, deterministic selection](#public-deterministic-selection)
@@ -101,9 +101,9 @@ class MatrixEntry(Container):
101101
row_index: RowIndex
102102
```
103103

104-
### Helper functions
104+
## Helper functions
105105

106-
#### `get_custody_columns`
106+
### `get_custody_columns`
107107

108108
```python
109109
def get_custody_columns(node_id: NodeID, custody_subnet_count: uint64) -> Sequence[ColumnIndex]:
@@ -133,7 +133,7 @@ def get_custody_columns(node_id: NodeID, custody_subnet_count: uint64) -> Sequen
133133
])
134134
```
135135

136-
#### `compute_extended_matrix`
136+
### `compute_extended_matrix`
137137

138138
```python
139139
def compute_extended_matrix(blobs: Sequence[Blob]) -> List[MatrixEntry, MAX_CELLS_IN_EXTENDED_MATRIX]:
@@ -156,7 +156,7 @@ def compute_extended_matrix(blobs: Sequence[Blob]) -> List[MatrixEntry, MAX_CELL
156156
return extended_matrix
157157
```
158158

159-
#### `recover_matrix`
159+
### `recover_matrix`
160160

161161
```python
162162
def recover_matrix(partial_matrix: Sequence[MatrixEntry],
@@ -183,7 +183,7 @@ def recover_matrix(partial_matrix: Sequence[MatrixEntry],
183183
return extended_matrix
184184
```
185185

186-
#### `get_data_column_sidecars`
186+
### `get_data_column_sidecars`
187187

188188
```python
189189
def get_data_column_sidecars(signed_block: SignedBeaconBlock,

specs/_features/eip7594/fork-choice.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
77

88
- [Introduction](#introduction)
9-
- [Helpers](#helpers)
10-
- [Modified `is_data_available`](#modified-is_data_available)
11-
- [Modified `get_head`](#modified-get_head)
9+
- [Helpers](#helpers)
10+
- [Modified `is_data_available`](#modified-is_data_available)
11+
- [Modified `get_head`](#modified-get_head)
1212
- [Updated fork-choice handlers](#updated-fork-choice-handlers)
1313
- [Modified `on_block`](#modified-on_block)
1414

@@ -19,9 +19,9 @@
1919

2020
This is the modification of the fork choice accompanying EIP-7594.
2121

22-
### Helpers
22+
## Helpers
2323

24-
#### Modified `is_data_available`
24+
### Modified `is_data_available`
2525

2626
```python
2727
def is_data_available(beacon_block_root: Root) -> bool:
@@ -37,7 +37,7 @@ def is_data_available(beacon_block_root: Root) -> bool:
3737
)
3838
```
3939

40-
#### Modified `get_head`
40+
### Modified `get_head`
4141

4242
*Note*: children of the current `head` are required to be available in order to be considered by the fork-choice.
4343

specs/_features/eip7594/peer-sampling.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
99
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
1010

11-
- [Helper functions](#helper-functions)
12-
- [`get_extended_sample_count`](#get_extended_sample_count)
11+
- [Introduction](#introduction)
12+
- [Helper functions](#helper-functions)
13+
- [`get_extended_sample_count`](#get_extended_sample_count)
1314
- [Peer discovery](#peer-discovery)
1415
- [Peer sampling](#peer-sampling)
1516
- [Sample selection](#sample-selection)
@@ -20,11 +21,13 @@
2021
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
2122
<!-- /TOC -->
2223

24+
## Introduction
25+
2326
The purpose of this document is to complement [EIP-7594 -- Data Availability Sampling Core](das-core.md), by specifying the peer sampling functionality of the full PeerDAS protocol. This functionality may initially not be implemented, or only implemented by some clients, in which case it is replaced by [subnet sampling](das-core.md#subnet-sampling), an extension of the custody component of the protocol.
2427

25-
### Helper functions
28+
## Helper functions
2629

27-
#### `get_extended_sample_count`
30+
### `get_extended_sample_count`
2831

2932
```python
3033
def get_extended_sample_count(allowed_failures: uint64) -> uint64:

tests/core/pyspec/eth2spec/test/deneb/fork_choice/test_on_block.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,4 +180,4 @@ def test_invalid_wrong_blobs_length(spec, state):
180180

181181
assert spec.get_head(store) != signed_block.message.hash_tree_root()
182182

183-
yield 'steps', test_steps
183+
yield 'steps', test_steps

0 commit comments

Comments
 (0)