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

feat: prague engine api types #8119

Merged
merged 5 commits into from
May 6, 2024
Merged

feat: prague engine api types #8119

merged 5 commits into from
May 6, 2024

Conversation

onbjerg
Copy link
Member

@onbjerg onbjerg commented May 6, 2024

  • Adds engine_newPayloadV4
  • Adds engine_getPayloadV4
  • Updates payload/payload attributes validation to handle V4 payloads

@onbjerg onbjerg added C-enhancement New feature or request E-prague Related to the prague network upgrade S-blocked This cannot more forward until something else changes labels May 6, 2024
@onbjerg onbjerg force-pushed the onbjerg/engine-api-prague branch from 1d0c430 to ed189d9 Compare May 6, 2024 13:08
Comment on lines +502 to +503
// TODO(onbjerg): Implement `ExecutionPayloadV4` support
todo!()
Copy link
Member Author

@onbjerg onbjerg May 6, 2024

Choose a reason for hiding this comment

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

for a follow up we should implement this for the beacon types, since this is not strictly necessary for the engine api (this is not used in that code path)

@onbjerg onbjerg removed the S-blocked This cannot more forward until something else changes label May 6, 2024
@onbjerg onbjerg marked this pull request as ready for review May 6, 2024 13:10
@onbjerg onbjerg force-pushed the onbjerg/engine-api-prague branch 2 times, most recently from 504ee2a to aea81af Compare May 6, 2024 13:36
DaniPopes pushed a commit to paradigmxyz/revm-inspectors that referenced this pull request May 6, 2024
@onbjerg onbjerg force-pushed the onbjerg/engine-api-prague branch from 11d2a4a to bd7d707 Compare May 6, 2024 15:40
@rkrasiuk
Copy link
Member

rkrasiuk commented May 6, 2024

@onbjerg still blocked?

@onbjerg
Copy link
Member Author

onbjerg commented May 6, 2024

nop, rfr, obviously still work to do, but the gist of it is that theres nothing new in payload v4 incoming from CL to EL (scratch that)

// not do anything special here to handle them
try_payload_v3_to_block(payload.payload_inner)
}

/// Converts [SealedBlock] to [ExecutionPayload]
pub fn block_to_payload(value: SealedBlock) -> ExecutionPayload {
Copy link
Member

Choose a reason for hiding this comment

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

this function needs adjustment as well

Copy link
Member Author

Choose a reason for hiding this comment

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

fn seems unused?

Copy link
Member Author

Choose a reason for hiding this comment

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

used in reorg sim, will adjust it in #8053

@onbjerg onbjerg enabled auto-merge May 6, 2024 16:36
@onbjerg onbjerg added this pull request to the merge queue May 6, 2024
Merged via the queue into main with commit c70b17a May 6, 2024
29 checks passed
@onbjerg onbjerg deleted the onbjerg/engine-api-prague branch May 6, 2024 17:05
mw2000 pushed a commit to mw2000/reth that referenced this pull request Jun 5, 2024
mw2000 pushed a commit to mw2000/reth that referenced this pull request Jun 5, 2024
mw2000 pushed a commit to mw2000/reth that referenced this pull request Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement New feature or request E-prague Related to the prague network upgrade
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants