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

refactor: remove PostExecutionInput #14464

Merged
merged 3 commits into from
Feb 13, 2025
Merged

refactor: remove PostExecutionInput #14464

merged 3 commits into from
Feb 13, 2025

Conversation

klkvr
Copy link
Member

@klkvr klkvr commented Feb 13, 2025

Based on #14465

Eventually it might be valuable for Consensus to operate directly on types produced by block executor.

This PR removes PostExecutionInput in favor of using reth_execution_types::BlockExecutionResult directly.

BlockExecutionOutput is changed to contain a BlockExecutionResult directly, essentially making it similar to ResultAndState. The expectation is that once we have a usecase for custom block executor output we'd just abstract components over BlockExecutionResult

@klkvr klkvr force-pushed the klkvr/rm-post-exec-input branch from 3d3c837 to b7e99df Compare February 13, 2025 09:15
@klkvr klkvr changed the base branch from main to klkvr/more-no-std February 13, 2025 09:16
@klkvr klkvr force-pushed the klkvr/rm-post-exec-input branch 2 times, most recently from 4432a7b to 1c5131d Compare February 13, 2025 09:34
Copy link
Member

@emhane emhane left a comment

Choose a reason for hiding this comment

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

good! a big improvement is if linking to issues was better, so that it would be visible from looking at prs how they tie into the higher level features currently being developed for reth/op-reth. that way it would be visible that the work you're doing often has big impact, and is not just a drive-by debt clean up.

this pr unblocks l2 withdrawals validation post execution for isthmus

Comment on lines -30 to -45
/// Post execution input passed to [`FullConsensus::validate_block_post_execution`].
#[derive(Debug)]
pub struct PostExecutionInput<'a, R> {
/// Receipts of the block.
pub receipts: &'a [R],
/// EIP-7685 requests of the block.
pub requests: &'a Requests,
}

impl<'a, R> PostExecutionInput<'a, R> {
/// Creates a new instance of `PostExecutionInput`.
pub const fn new(receipts: &'a [R], requests: &'a Requests) -> Self {
Self { receipts, requests }
}
}

Copy link
Member

Choose a reason for hiding this comment

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

nice, this unblocks l2 withdrawals validation post execution

Base automatically changed from klkvr/more-no-std to main February 13, 2025 10:01
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

nice

Comment on lines 13 to 17
reth-prune-types
reth-static-file-types
reth-storage-errors
reth-execution-errors
reth-execution-types
Copy link
Collaborator

Choose a reason for hiding this comment

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

cool

@mattsse
Copy link
Collaborator

mattsse commented Feb 13, 2025

pending conflicts

@klkvr klkvr force-pushed the klkvr/rm-post-exec-input branch from 6162ca7 to fd9ed72 Compare February 13, 2025 10:11
@klkvr klkvr enabled auto-merge February 13, 2025 10:11
@klkvr klkvr added this pull request to the merge queue Feb 13, 2025
Merged via the queue into main with commit 46462ae Feb 13, 2025
45 checks passed
@klkvr klkvr deleted the klkvr/rm-post-exec-input branch February 13, 2025 10:37
frankudoags pushed a commit to frankudoags/reth that referenced this pull request Feb 13, 2025
@emhane emhane mentioned this pull request Feb 14, 2025
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.

3 participants