chore: remove reth-primitives dep from consensus (#14067)

This commit is contained in:
Matthias Seitz
2025-01-29 17:51:53 +01:00
committed by GitHub
parent 88c878da0c
commit 9001cc2cec
9 changed files with 12 additions and 19 deletions

View File

@ -104,7 +104,7 @@ where
fn validate_block_post_execution(
&self,
block: &RecoveredBlock<N::Block>,
input: PostExecutionInput<'_>,
input: PostExecutionInput<'_, N::Receipt>,
) -> Result<(), ConsensusError> {
validate_block_post_execution(block, &self.chain_spec, input.receipts, input.requests)
}

View File

@ -287,7 +287,7 @@ impl<Node> ConsensusBuilder<Node> for EthereumConsensusBuilder
where
Node: FullNodeTypes<Types: NodeTypes<ChainSpec = ChainSpec, Primitives = EthPrimitives>>,
{
type Consensus = Arc<dyn FullConsensus<Error = ConsensusError>>;
type Consensus = Arc<dyn FullConsensus<EthPrimitives, Error = ConsensusError>>;
async fn build_consensus(self, ctx: &BuilderContext<Node>) -> eyre::Result<Self::Consensus> {
Ok(Arc::new(EthBeaconConsensus::new(ctx.chain_spec())))