Update doc

This commit is contained in:
Hsiao-Wei Wang 2021-04-12 22:02:04 +08:00
parent a8160f1634
commit 8708ec4bb0
No known key found for this signature in database
GPG Key ID: 1111A8A81778319E
1 changed files with 4 additions and 2 deletions

View File

@ -663,9 +663,11 @@ def process_sync_committee_updates(state: BeaconState) -> None:
state.next_sync_committee = get_sync_committee(state, next_epoch + EPOCHS_PER_SYNC_COMMITTEE_PERIOD) state.next_sync_committee = get_sync_committee(state, next_epoch + EPOCHS_PER_SYNC_COMMITTEE_PERIOD)
``` ```
## Initialize state for testnets ## Initialize state for Altair testnets
This helper function is only for initialize Altair testnets and tests. This helper function is only for initializing the pure Altair testnets and tests, where we use the dummy where the `ALTAIR_FORK_SLOT` GENESIS_SLOT`.
*Note*: The function `initialize_beacon_state_from_eth1` is modified with `ALTAIR_FORK_VERSION` fork version and initial sync committees.
```python ```python
def initialize_beacon_state_from_eth1(eth1_block_hash: Bytes32, def initialize_beacon_state_from_eth1(eth1_block_hash: Bytes32,