mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-03 06:05:23 -05:00
Update 0_beacon-chain.md (#547)
This commit is contained in:
@@ -940,7 +940,6 @@ def generate_seed(state: BeaconState,
|
||||
"""
|
||||
Generate a seed for the given ``epoch``.
|
||||
"""
|
||||
|
||||
return hash(
|
||||
get_randao_mix(state, epoch - SEED_LOOKAHEAD) +
|
||||
get_active_index_root(state, epoch)
|
||||
@@ -1000,7 +999,7 @@ def get_attestation_participants(state: BeaconState,
|
||||
|
||||
### `is_power_of_two`
|
||||
|
||||
```
|
||||
```python
|
||||
def is_power_of_two(value: int) -> bool:
|
||||
"""
|
||||
Check if ``value`` is a power of two integer.
|
||||
|
||||
Reference in New Issue
Block a user