Skip to content
Merged
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions specs/gloas/fork-choice.md
Original file line number Diff line number Diff line change
Expand Up @@ -394,14 +394,16 @@ def is_supporting_vote(store: Store, node: ForkChoiceNode, message: LatestMessag
*Note*: `should_build_on_full` is called by the proposer before deciding whether
to build on top of the empty or full parent pending node. This function is
similar to `should_extend_payload` but takes into consideration the PTC view on
data availability.
both data availability and payload timeliness.

```python
def should_build_on_full(store: Store, head: ForkChoiceNode) -> bool:
assert head.payload_status != PAYLOAD_STATUS_PENDING
if head.payload_status == PAYLOAD_STATUS_EMPTY:
return False
return not payload_data_availability(store, head.root, available=False)
if payload_data_availability(store, head.root, available=False):
return False
return not payload_timeliness(store, head.root, timely=False)
```

### New `should_extend_payload`
Expand Down