Update specs/core/0_beacon-chain.md
Co-Authored-By: vbuterin <v@buterin.com>
This commit is contained in:
parent
737c7bc1fa
commit
e9f986971e
|
@ -957,7 +957,7 @@ def get_attestation_participants(state: BeaconState,
|
||||||
```python
|
```python
|
||||||
def get_effective_balance(balance: int) -> int:
|
def get_effective_balance(balance: int) -> int:
|
||||||
"""
|
"""
|
||||||
Returns the effective balance (also known as "balance at stake") for a ``validator`` with the given balance.
|
Returns the effective balance (also known as "balance at stake") for a ``validator`` with the given ``validator_index``.
|
||||||
"""
|
"""
|
||||||
return min(balance, MAX_DEPOSIT * GWEI_PER_ETH)
|
return min(balance, MAX_DEPOSIT * GWEI_PER_ETH)
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue