Skip to content

Fix epbs consensus spec to be executable#10

Merged
potuz merged 4 commits into
potuz:epbs_no_ilfrom
terencechain:epbs_no_il_executable
Jun 28, 2024
Merged

Fix epbs consensus spec to be executable#10
potuz merged 4 commits into
potuz:epbs_no_ilfrom
terencechain:epbs_no_il_executable

Conversation

@terencechain

@terencechain terencechain commented Jun 24, 2024

Copy link
Copy Markdown

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.

@terencechain terencechain force-pushed the epbs_no_il_executable branch from e0a555e to 4952cd0 Compare June 24, 2024 20:25
@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

@potuz potuz left a comment

Copy link
Copy Markdown
Owner

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

Comment thread specs/_features/eipxxxx/fork-choice.md Outdated

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

Copy link
Copy Markdown
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

Comment thread specs/_features/eipxxxx/fork-choice.md Outdated
root: Root
slot: Slot
is_payload_present: bool
is_payload_present: boolean

Copy link
Copy Markdown
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

Comment thread specs/_features/eipxxxx/fork-choice.md Outdated
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
Copy Markdown
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

@terencechain terencechain force-pushed the epbs_no_il_executable branch from bdba086 to f960d31 Compare June 28, 2024 13:46
@potuz potuz merged commit 7ac27f1 into potuz:epbs_no_il Jun 28, 2024
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