-
Notifications
You must be signed in to change notification settings - Fork 3
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
Conversation
e0a555e
to
4952cd0
Compare
c8ca26f
to
c732be9
Compare
acfb8fd
to
ad4e0f0
Compare
There was a problem hiding this 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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be bool
bdba086
to
f960d31
Compare
Fix epbs consensus spec to be executable
This PR addresses several bugs in
specs/_features/epbs/beacon-chain.md
:state.previous_inclusion_list
usages inprocess_execution_payload
BitVector
toBitvector
bool
withboolean
As a result, ePBS should be executable via
make pyspec
. The execution files should be located intests/core/pyspec/eth2spec/epbs
, which I won't check in.