Skip to content

Commit 3553498

Browse files
committed
reorg some spec functions
1 parent 9bcafc8 commit 3553498

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

specs/electra/beacon-chain.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@
3838
- [`ExecutionPayloadHeader`](#executionpayloadheader)
3939
- [`BeaconState`](#beaconstate)
4040
- [Helper functions](#helper-functions)
41-
- [Misc](#misc-1)
42-
- [`get_committee_indices`](#get_committee_indices)
4341
- [Predicates](#predicates)
4442
- [Updated `is_eligible_for_activation_queue`](#updated-is_eligible_for_activation_queue)
4543
- [New `is_compounding_withdrawal_credential`](#new-is_compounding_withdrawal_credential)
4644
- [New `has_compounding_withdrawal_credential`](#new-has_compounding_withdrawal_credential)
4745
- [New `has_execution_withdrawal_credential`](#new-has_execution_withdrawal_credential)
4846
- [Updated `is_fully_withdrawable_validator`](#updated-is_fully_withdrawable_validator)
4947
- [Updated `is_partially_withdrawable_validator`](#updated-is_partially_withdrawable_validator)
48+
- [Misc](#misc-1)
49+
- [`get_committee_indices`](#get_committee_indices)
50+
- [`get_validator_max_effective_balance`](#get_validator_max_effective_balance)
5051
- [Beacon state accessors](#beacon-state-accessors)
51-
- [New `get_validator_max_effective_balance`](#new-get_validator_max_effective_balance)
5252
- [New `get_churn_limit`](#new-get_churn_limit)
5353
- [New `get_activation_exit_churn_limit`](#new-get_activation_exit_churn_limit)
5454
- [New `get_consolidation_churn_limit`](#new-get_consolidation_churn_limit)
@@ -394,15 +394,6 @@ class BeaconState(Container):
394394

395395
## Helper functions
396396

397-
### Misc
398-
399-
#### `get_committee_indices`
400-
401-
```python
402-
def get_committee_indices(commitee_bits: Bitvector) -> Sequence[CommitteeIndex]:
403-
return [CommitteeIndex(index) for index, bit in enumerate(commitee_bits) if bit]
404-
```
405-
406397
### Predicates
407398

408399
#### Updated `is_eligible_for_activation_queue`
@@ -476,9 +467,16 @@ def is_partially_withdrawable_validator(validator: Validator, balance: Gwei) ->
476467
)
477468
```
478469

479-
### Beacon state accessors
470+
### Misc
471+
472+
#### `get_committee_indices`
473+
474+
```python
475+
def get_committee_indices(commitee_bits: Bitvector) -> Sequence[CommitteeIndex]:
476+
return [CommitteeIndex(index) for index, bit in enumerate(commitee_bits) if bit]
477+
```
480478

481-
#### New `get_validator_max_effective_balance`
479+
#### `get_validator_max_effective_balance`
482480

483481
```python
484482
def get_validator_max_effective_balance(validator: Validator) -> Gwei:
@@ -491,6 +489,8 @@ def get_validator_max_effective_balance(validator: Validator) -> Gwei:
491489
return MIN_ACTIVATION_BALANCE
492490
```
493491

492+
### Beacon state accessors
493+
494494
#### New `get_churn_limit`
495495

496496
```python

0 commit comments

Comments
 (0)