Altair constant/preset/config separation

This commit is contained in:
protolambda 2021-05-06 15:52:52 +02:00
parent b9ffd8f640
commit 7689ebb2bd
No known key found for this signature in database
GPG Key ID: EC89FDBB2B4C7623
2 changed files with 20 additions and 17 deletions

View File

@ -11,12 +11,13 @@
- [Constants](#constants)
- [Participation flag indices](#participation-flag-indices)
- [Incentivization weights](#incentivization-weights)
- [Domain types](#domain-types)
- [Misc](#misc)
- [Configuration](#configuration)
- [Preset](#preset)
- [Updated penalty values](#updated-penalty-values)
- [Sync committee](#sync-committee)
- [Configuration](#configuration)
- [Misc](#misc-1)
- [Domain types](#domain-types)
- [Containers](#containers)
- [Modified containers](#modified-containers)
- [`BeaconBlockBody`](#beaconblockbody)
@ -94,6 +95,14 @@ Altair is the first beacon chain hard fork. Its main features are:
*Note*: The sum of the weights equal `WEIGHT_DENOMINATOR`.
### Domain types
| Name | Value |
| - | - |
| `DOMAIN_SYNC_COMMITTEE` | `DomainType('0x07000000')` |
| `DOMAIN_SYNC_COMMITTEE_SELECTION_PROOF` | `DomainType('0x08000000')` |
| `DOMAIN_CONTRIBUTION_AND_PROOF` | `DomainType('0x09000000')` |
### Misc
| Name | Value |
@ -101,7 +110,7 @@ Altair is the first beacon chain hard fork. Its main features are:
| `G2_POINT_AT_INFINITY` | `BLSSignature(b'\xc0' + b'\x00' * 95)` |
| `PARTICIPATION_FLAG_WEIGHTS` | `[TIMELY_SOURCE_WEIGHT, TIMELY_TARGET_WEIGHT, TIMELY_HEAD_FLAG_INDEX]` |
## Configuration
## Preset
### Updated penalty values
@ -122,20 +131,14 @@ This patch updates a few configuration values to move penalty parameters closer
| `SYNC_COMMITTEE_SIZE` | `uint64(2**9)` (= 512) | Validators | |
| `EPOCHS_PER_SYNC_COMMITTEE_PERIOD` | `uint64(2**9)` (= 512) | epochs | ~54 hours |
## Configuration
### Misc
| Name | Value |
| - | - |
| `INACTIVITY_SCORE_BIAS` | `uint64(4)` |
| `INACTIVITY_SCORE_RECOVERY_RATE` | `uint64(16)` |
### Domain types
| Name | Value |
| - | - |
| `DOMAIN_SYNC_COMMITTEE` | `DomainType('0x07000000')` |
| `DOMAIN_SYNC_COMMITTEE_SELECTION_PROOF` | `DomainType('0x08000000')` |
| `DOMAIN_CONTRIBUTION_AND_PROOF` | `DomainType('0x09000000')` |
| Name | Value | Unit |
| - | - | :-: | :-: |
| `INACTIVITY_SCORE_BIAS` | `uint64(4)` | score points per inactive epoch |
| `INACTIVITY_SCORE_RECOVERY_RATE` | `uint64(16)` | score points per recovering epoch |
## Containers

View File

@ -10,7 +10,7 @@
- [Introduction](#introduction)
- [Constants](#constants)
- [Configuration](#configuration)
- [Preset](#preset)
- [Misc](#misc)
- [Containers](#containers)
- [`LightClientSnapshot`](#lightclientsnapshot)
@ -43,7 +43,7 @@ uses sync committees introduced in [this beacon chain extension](./beacon-chain.
| `FINALIZED_ROOT_INDEX` | `get_generalized_index(BeaconState, 'finalized_checkpoint', 'root')` |
| `NEXT_SYNC_COMMITTEE_INDEX` | `get_generalized_index(BeaconState, 'next_sync_committee')` |
## Configuration
## Preset
### Misc