Skip to content

Updated validator spec with rules for including execution requests in the beacon block body#3976

Merged
jtraglia merged 14 commits into
ethereum:devfrom
lucassaldanha:update-validator-electra
Oct 11, 2024
Merged

Updated validator spec with rules for including execution requests in the beacon block body#3976
jtraglia merged 14 commits into
ethereum:devfrom
lucassaldanha:update-validator-electra

Conversation

@lucassaldanha

@lucassaldanha lucassaldanha commented Oct 9, 2024

Copy link
Copy Markdown
Contributor
  • Defined/Updated ssz_serialize and ssz_deserialize functions
  • Updated GetPayloadResponse with execution_requests: Sequence[bytes]
  • Updated get_payload definition with extra detail re execution_requests
  • New section in "Constructing the BeaconBlockBody for ExecutionRequests"
  • Updated list[bytes] to Sequence[bytes]

@lucassaldanha

Copy link
Copy Markdown
Contributor Author

cc @mkalinin

Comment thread specs/electra/validator.md Outdated
Comment thread specs/electra/validator.md Outdated
Comment thread specs/electra/validator.md Outdated
@lucassaldanha lucassaldanha marked this pull request as ready for review October 10, 2024 04:27
Comment thread tests/core/pyspec/eth2spec/utils/ssz/ssz_impl.py Outdated
Comment thread specs/electra/validator.md Outdated
Comment thread specs/electra/validator.md Outdated
@lucassaldanha

Copy link
Copy Markdown
Contributor Author

@hwwhww could you help me understand the test failures? 😢

@jtraglia

jtraglia commented Oct 10, 2024

Copy link
Copy Markdown
Member

@hwwhww could you help me understand the test failures? 😢

I think I know the reason. List is a remerkleable type and requires a max length component. For example:

List[DepositRequest, MAX_DEPOSIT_REQUESTS_PER_PAYLOAD]

And in this PR we use List without a length in the updated GetPayloadResponse type. Instead, we can use Sequence which does not require a max length component. I'll push a commit for this.

@hwwhww hwwhww left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

it seems @jtraglia has solved the linter issue? (🙏)

Comment thread tests/core/pyspec/eth2spec/utils/ssz/ssz_impl.py
Comment thread specs/electra/validator.md Outdated
Comment thread specs/electra/validator.md Outdated
jtraglia and others added 3 commits October 10, 2024 13:29
Co-authored-by: Alex Stokes <r.alex.stokes@gmail.com>
Co-authored-by: Alex Stokes <r.alex.stokes@gmail.com>

@hwwhww hwwhww left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

Thank you @lucassaldanha!

@jtraglia jtraglia merged commit a2e16c8 into ethereum:dev Oct 11, 2024
@lucassaldanha lucassaldanha deleted the update-validator-electra branch October 11, 2024 21:17
@johncrosschimezie

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.