Skip to content

Commit c49c1e7

Browse files
authored
Clean up Gloas specs (part 5) (#4738)
- Remove `remove_flag` - Place `ForkChoiceNode` under `Helpers` - Make validator duty description more accurate
1 parent ab09e2e commit c49c1e7

File tree

3 files changed

+5
-14
lines changed

3 files changed

+5
-14
lines changed

specs/gloas/beacon-chain.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
- [New `is_parent_block_full`](#new-is_parent_block_full)
3939
- [Misc](#misc-2)
4040
- [Modified `get_pending_balance_to_withdraw`](#modified-get_pending_balance_to_withdraw)
41-
- [New `remove_flag`](#new-remove_flag)
4241
- [New `compute_balance_weighted_selection`](#new-compute_balance_weighted_selection)
4342
- [New `compute_balance_weighted_acceptance`](#new-compute_balance_weighted_acceptance)
4443
- [Modified `compute_proposer_indices`](#modified-compute_proposer_indices)
@@ -438,14 +437,6 @@ def get_pending_balance_to_withdraw(state: BeaconState, validator_index: Validat
438437
)
439438
```
440439

441-
#### New `remove_flag`
442-
443-
```python
444-
def remove_flag(flags: ParticipationFlags, flag_index: int) -> ParticipationFlags:
445-
flag = ParticipationFlags(2**flag_index)
446-
return flags & ~flag
447-
```
448-
449440
#### New `compute_balance_weighted_selection`
450441

451442
```python

specs/gloas/fork-choice.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
- [Introduction](#introduction)
88
- [Custom types](#custom-types)
99
- [Constants](#constants)
10-
- [Containers](#containers)
10+
- [Helpers](#helpers)
1111
- [New `ForkChoiceNode`](#new-forkchoicenode)
1212
- [Modified `LatestMessage`](#modified-latestmessage)
1313
- [Modified `update_latest_messages`](#modified-update_latest_messages)
@@ -61,7 +61,7 @@ This is the modification of the fork-choice accompanying the Gloas upgrade.
6161
| `PAYLOAD_STATUS_EMPTY` | `PayloadStatus(1)` |
6262
| `PAYLOAD_STATUS_FULL` | `PayloadStatus(2)` |
6363

64-
## Containers
64+
## Helpers
6565

6666
### New `ForkChoiceNode`
6767

specs/gloas/validator.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ future assignments by noting their assigned PTC slot.
8484

8585
All validator responsibilities remain unchanged other than the following:
8686

87-
- Proposers are no longer required to broadcast `BlobSidecar` objects, as this
88-
becomes a builder's duty.
89-
- Some validators are selected per slot to become PTC members, these validators
87+
- Proposers are no longer required to broadcast `DataColumnSidecar` objects, as
88+
this becomes a builder's duty.
89+
- Some attesters are selected per slot to become PTC members, these validators
9090
must broadcast `PayloadAttestationMessage` objects during the assigned slot
9191
before the deadline of `get_attestation_due_ms(epoch)` milliseconds into the
9292
slot.

0 commit comments

Comments
 (0)