-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Use generic receipt in InvalidBlockWitnessHook
impl
#12675
Comments
something you are keen on @tcoratger ? hang on till merged....#12674 |
This also requires a modification of the /// An invalid block hook.
pub trait InvalidBlockHook<P>: Send + Sync,
{
/// Invoked when an invalid block is encountered.
fn on_invalid_block(
&self,
parent_header: &SealedHeader,
block: &SealedBlockWithSenders,
output: &BlockExecutionOutput<ReceiptTy<P>>,
trie_updates: Option<(&TrieUpdates, B256)>,
);
} is it really what we want? |
we are generalising traits and types separately, the reason being to keep scope of prs small and the change to the trait spreads to a lot of crates since it was decided to use an associated type on the trait for primitive types, instead of a generic, and as you know default AT is not stable, cc @klkvr |
something you want to look at @htiennv ? |
yes, can you assign to me? Thanks @emhane |
Resolved by #13105 |
Describe the feature
Replace
reth_primitives::Receipt
withreth_primitives_traits::ReceiptTy<P::Primitives>
inInvalidBlockWitnessHook
impl by adding additional trait boundP: NodeTypes
to impl body.reth/crates/engine/invalid-block-hooks/src/witness.rs
Lines 40 to 297 in 3408059
Additional context
No response
The text was updated successfully, but these errors were encountered: