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

chore: generic data primitives BlockExecutionStrategy #12984

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions crates/evm/src/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use alloy_eips::eip7685::Requests;
use alloy_primitives::BlockNumber;
use core::{fmt::Display, marker::PhantomData};
use reth_consensus::ConsensusError;
use reth_primitives::{BlockWithSenders, Receipt};
use reth_primitives::{BlockWithSenders, NodePrimitives, Receipt};
use reth_prune_types::PruneModes;
use reth_revm::batch::BlockBatchRecord;
use revm::{
Expand Down Expand Up @@ -182,7 +182,7 @@ pub struct ExecuteOutput {
}

/// Defines the strategy for executing a single block.
pub trait BlockExecutionStrategy<DB>
pub trait BlockExecutionStrategy<DB, N: NodePrimitives = reth_primitives::EthPrimitives>
where
DB: Database,
{
Expand Down Expand Up @@ -211,7 +211,7 @@ where
&mut self,
block: &BlockWithSenders,
total_difficulty: U256,
receipts: &[Receipt],
receipts: &[N::Receipt],
) -> Result<Requests, Self::Error>;

/// Returns a reference to the current state.
Expand All @@ -233,7 +233,7 @@ where
fn validate_block_post_execution(
&self,
_block: &BlockWithSenders,
_receipts: &[Receipt],
_receipts: &[N::Receipt],
_requests: &Requests,
) -> Result<(), ConsensusError> {
Ok(())
Expand Down
Loading