Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix epbs consensus spec to be executable #10

Merged
merged 4 commits into from
Jun 28, 2024

Conversation

terencechain
Copy link

@terencechain terencechain commented Jun 24, 2024

This PR addresses several bugs in specs/_features/epbs/beacon-chain.md:

  • Remove state.previous_inclusion_list usages in process_execution_payload
  • Change BitVector to Bitvector
  • Replace bool with boolean
  • Fix several fork choice typos

As a result, ePBS should be executable via make pyspec. The execution files should be located in tests/core/pyspec/eth2spec/epbs, which I won't check in.

@potuz potuz force-pushed the epbs_no_il branch 3 times, most recently from c8ca26f to c732be9 Compare June 25, 2024 09:46
@terencechain terencechain force-pushed the epbs_no_il_executable branch 2 times, most recently from acfb8fd to ad4e0f0 Compare June 25, 2024 14:36
Copy link
Owner

@potuz potuz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a lot of places where the type should be the original Python bool and not an SSZ type boolean

@@ -51,13 +51,13 @@ This is the modification of the fork choice accompanying the ePBS upgrade.
## Containers

### New `ChildNode`
Auxiliary class to consider `(block, slot, bool)` LMD voting
Auxiliary class to consider `(block, slot, boolean)` LMD voting
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be bool


```python
class ChildNode(Container):
root: Root
slot: Slot
is_payload_present: bool
is_payload_present: boolean
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be bool

@@ -107,7 +107,7 @@ class Store(object):
execution_payload_states: Dict[Root, BeaconState] = field(default_factory=dict) # [New in EIP-XXXX]
ptc_vote: Dict[Root, Vector[uint8, PTC_SIZE]] = field(default_factory=dict) # [New in EIP-XXXX]
payload_withhold_boost_root: Root # [New in EIP-XXXX]
payload_withhold_boost_full: bool # [New in EIP-XXXX]
payload_withhold_boost_full: boolean # [New in EIP-XXXX]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be bool

@potuz potuz merged commit 7ac27f1 into potuz:epbs_no_il Jun 28, 2024
0 of 3 checks passed
potuz pushed a commit that referenced this pull request Jul 8, 2024
Fix epbs consensus spec to be executable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants