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: add additional payloadbody conversion fn #1989

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mattsse
Copy link
Member

@mattsse mattsse commented Feb 1, 2025

this type doesn't need the entire block, only txs

this way we get a constructor decoupled from the block type which is more helpful for reth:

https://github.com/paradigmxyz/reth/blob/209b44829ee80a2e5a7b3e673c02b4fa1d81233e/crates/rpc/rpc-types-compat/src/engine/payload.rs#L9-L10

}
}

/// Converts a [`alloy_consensus::Block`] into an execution payload body.
pub fn from_block<T: Encodable2718, H>(block: &Block<T, H>) -> Self {
Copy link
Member

Choose a reason for hiding this comment

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

this is breaking

Copy link
Member Author

Choose a reason for hiding this comment

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

yep, these were just introduced, dont believe anyone's using that besides us

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