-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Conversation
3d3c837
to
b7e99df
Compare
4432a7b
to
1c5131d
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.
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
/// 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 } | ||
} | ||
} | ||
|
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.
nice, this unblocks l2 withdrawals validation post execution
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.
nice
.github/assets/check_rv32imac.sh
Outdated
reth-prune-types | ||
reth-static-file-types | ||
reth-storage-errors | ||
reth-execution-errors | ||
reth-execution-types |
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.
cool
pending conflicts |
6162ca7
to
fd9ed72
Compare
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 usingreth_execution_types::BlockExecutionResult
directly.BlockExecutionOutput
is changed to contain aBlockExecutionResult
directly, essentially making it similar toResultAndState
. The expectation is that once we have a usecase for custom block executor output we'd just abstract components overBlockExecutionResult