mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-15 13:15:36 +00:00
Merge pull request #2356 from ericsson49/ericsson49/fix_typos_in_sharding
fix typos in sharding
This commit is contained in:
commit
fa248675b2
@ -280,7 +280,7 @@ class ShardProposerSlashing(Container):
|
|||||||
#### `next_power_of_two`
|
#### `next_power_of_two`
|
||||||
|
|
||||||
```python
|
```python
|
||||||
def next_power_of_two(x):
|
def next_power_of_two(x: int) -> int:
|
||||||
return 2 ** ((x - 1).bit_length())
|
return 2 ** ((x - 1).bit_length())
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -374,7 +374,7 @@ ensuring that the balance is always sufficient to cover gas costs.
|
|||||||
def compute_proposer_index(beacon_state: BeaconState,
|
def compute_proposer_index(beacon_state: BeaconState,
|
||||||
indices: Sequence[ValidatorIndex],
|
indices: Sequence[ValidatorIndex],
|
||||||
seed: Bytes32,
|
seed: Bytes32,
|
||||||
min_effective_balance: GWei = GWei(0)) -> ValidatorIndex:
|
min_effective_balance: Gwei = Gwei(0)) -> ValidatorIndex:
|
||||||
"""
|
"""
|
||||||
Return from ``indices`` a random index sampled by effective balance.
|
Return from ``indices`` a random index sampled by effective balance.
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user