Align formatting
This commit is contained in:
parent
5717a81393
commit
3e5427e31e
|
@ -12,6 +12,10 @@
|
||||||
- [Constants](#constants)
|
- [Constants](#constants)
|
||||||
- [Preset](#preset)
|
- [Preset](#preset)
|
||||||
- [Misc](#misc)
|
- [Misc](#misc)
|
||||||
|
- [Helper types](#helper-types)
|
||||||
|
- [`FinalityBranch`](#finalitybranch)
|
||||||
|
- [`CurrentSyncCommitteeBranch`](#currentsynccommitteebranch)
|
||||||
|
- [`NextSyncCommitteeBranch`](#nextsynccommitteebranch)
|
||||||
- [Containers](#containers)
|
- [Containers](#containers)
|
||||||
- [`LightClientHeader`](#lightclientheader)
|
- [`LightClientHeader`](#lightclientheader)
|
||||||
- [`LightClientBootstrap`](#lightclientbootstrap)
|
- [`LightClientBootstrap`](#lightclientbootstrap)
|
||||||
|
@ -64,17 +68,6 @@ Additional documents describe how the light client sync protocol can be used:
|
||||||
| `CURRENT_SYNC_COMMITTEE_INDEX` | `get_generalized_index(BeaconState, 'current_sync_committee')` (= 54) |
|
| `CURRENT_SYNC_COMMITTEE_INDEX` | `get_generalized_index(BeaconState, 'current_sync_committee')` (= 54) |
|
||||||
| `NEXT_SYNC_COMMITTEE_INDEX` | `get_generalized_index(BeaconState, 'next_sync_committee')` (= 55) |
|
| `NEXT_SYNC_COMMITTEE_INDEX` | `get_generalized_index(BeaconState, 'next_sync_committee')` (= 55) |
|
||||||
|
|
||||||
```python
|
|
||||||
class FinalityBranch(Vector[Bytes32, floorlog2(FINALIZED_ROOT_INDEX)]):
|
|
||||||
pass
|
|
||||||
|
|
||||||
class CurrentSyncCommitteeBranch(Vector[Bytes32, floorlog2(CURRENT_SYNC_COMMITTEE_INDEX)]):
|
|
||||||
pass
|
|
||||||
|
|
||||||
class NextSyncCommitteeBranch(Vector[Bytes32, floorlog2(NEXT_SYNC_COMMITTEE_INDEX)]):
|
|
||||||
pass
|
|
||||||
```
|
|
||||||
|
|
||||||
## Preset
|
## Preset
|
||||||
|
|
||||||
### Misc
|
### Misc
|
||||||
|
@ -84,6 +77,29 @@ class NextSyncCommitteeBranch(Vector[Bytes32, floorlog2(NEXT_SYNC_COMMITTEE_INDE
|
||||||
| `MIN_SYNC_COMMITTEE_PARTICIPANTS` | `1` | validators | |
|
| `MIN_SYNC_COMMITTEE_PARTICIPANTS` | `1` | validators | |
|
||||||
| `UPDATE_TIMEOUT` | `SLOTS_PER_EPOCH * EPOCHS_PER_SYNC_COMMITTEE_PERIOD` | slots | ~27.3 hours |
|
| `UPDATE_TIMEOUT` | `SLOTS_PER_EPOCH * EPOCHS_PER_SYNC_COMMITTEE_PERIOD` | slots | ~27.3 hours |
|
||||||
|
|
||||||
|
## Helper types
|
||||||
|
|
||||||
|
### `FinalityBranch`
|
||||||
|
|
||||||
|
```python
|
||||||
|
class FinalityBranch(Vector[Bytes32, floorlog2(FINALIZED_ROOT_INDEX)]):
|
||||||
|
pass
|
||||||
|
```
|
||||||
|
|
||||||
|
### `CurrentSyncCommitteeBranch`
|
||||||
|
|
||||||
|
```python
|
||||||
|
class CurrentSyncCommitteeBranch(Vector[Bytes32, floorlog2(CURRENT_SYNC_COMMITTEE_INDEX)]):
|
||||||
|
pass
|
||||||
|
```
|
||||||
|
|
||||||
|
### `NextSyncCommitteeBranch`
|
||||||
|
|
||||||
|
```python
|
||||||
|
class NextSyncCommitteeBranch(Vector[Bytes32, floorlog2(NEXT_SYNC_COMMITTEE_INDEX)]):
|
||||||
|
pass
|
||||||
|
```
|
||||||
|
|
||||||
## Containers
|
## Containers
|
||||||
|
|
||||||
### `LightClientHeader`
|
### `LightClientHeader`
|
||||||
|
|
|
@ -10,6 +10,8 @@
|
||||||
|
|
||||||
- [Introduction](#introduction)
|
- [Introduction](#introduction)
|
||||||
- [Constants](#constants)
|
- [Constants](#constants)
|
||||||
|
- [Helper types](#helper-types)
|
||||||
|
- [`ExecutionBranch`](#executionbranch)
|
||||||
- [Containers](#containers)
|
- [Containers](#containers)
|
||||||
- [Modified `LightClientHeader`](#modified-lightclientheader)
|
- [Modified `LightClientHeader`](#modified-lightclientheader)
|
||||||
- [Helper functions](#helper-functions)
|
- [Helper functions](#helper-functions)
|
||||||
|
@ -33,6 +35,11 @@ Additional documents describes the impact of the upgrade on certain roles:
|
||||||
| - | - |
|
| - | - |
|
||||||
| `EXECUTION_PAYLOAD_INDEX` | `get_generalized_index(BeaconBlockBody, 'execution_payload')` (= 25) |
|
| `EXECUTION_PAYLOAD_INDEX` | `get_generalized_index(BeaconBlockBody, 'execution_payload')` (= 25) |
|
||||||
|
|
||||||
|
|
||||||
|
## Helper types
|
||||||
|
|
||||||
|
### `ExecutionBranch`
|
||||||
|
|
||||||
```python
|
```python
|
||||||
class ExecutionBranch(Vector[Bytes32, floorlog2(EXECUTION_PAYLOAD_INDEX)]):
|
class ExecutionBranch(Vector[Bytes32, floorlog2(EXECUTION_PAYLOAD_INDEX)]):
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue