Skip to content

Commit 3b259b6

Browse files
authored
Merge pull request #3676 from ethDreamer/balance_churn_limit
EIP-7251: Rename get_churn_limit() for clarity
2 parents 3e45cdc + 8b6b710 commit 3b259b6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

specs/electra/beacon-chain.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
- [`get_committee_indices`](#get_committee_indices)
5252
- [`get_validator_max_effective_balance`](#get_validator_max_effective_balance)
5353
- [Beacon state accessors](#beacon-state-accessors)
54-
- [New `get_churn_limit`](#new-get_churn_limit)
54+
- [New `get_balance_churn_limit`](#new-get_balance_churn_limit)
5555
- [New `get_activation_exit_churn_limit`](#new-get_activation_exit_churn_limit)
5656
- [New `get_consolidation_churn_limit`](#new-get_consolidation_churn_limit)
5757
- [New `get_active_balance`](#new-get_active_balance)
@@ -525,10 +525,10 @@ def get_validator_max_effective_balance(validator: Validator) -> Gwei:
525525

526526
### Beacon state accessors
527527

528-
#### New `get_churn_limit`
528+
#### New `get_balance_churn_limit`
529529

530530
```python
531-
def get_churn_limit(state: BeaconState) -> Gwei:
531+
def get_balance_churn_limit(state: BeaconState) -> Gwei:
532532
"""
533533
Return the churn limit for the current epoch.
534534
"""
@@ -546,14 +546,14 @@ def get_activation_exit_churn_limit(state: BeaconState) -> Gwei:
546546
"""
547547
Return the churn limit for the current epoch dedicated to activations and exits.
548548
"""
549-
return min(MAX_PER_EPOCH_ACTIVATION_EXIT_CHURN_LIMIT, get_churn_limit(state))
549+
return min(MAX_PER_EPOCH_ACTIVATION_EXIT_CHURN_LIMIT, get_balance_churn_limit(state))
550550
```
551551

552552
#### New `get_consolidation_churn_limit`
553553

554554
```python
555555
def get_consolidation_churn_limit(state: BeaconState) -> Gwei:
556-
return get_churn_limit(state) - get_activation_exit_churn_limit(state)
556+
return get_balance_churn_limit(state) - get_activation_exit_churn_limit(state)
557557
```
558558

559559
#### New `get_active_balance`

0 commit comments

Comments
 (0)