chore: rm reth-primitives from engine api crate (#14324)

This commit is contained in:
Matthias Seitz
2025-02-08 08:17:56 +01:00
committed by GitHub
parent 7603b74890
commit dbf4e23e63
4 changed files with 9 additions and 13 deletions

View File

@@ -8,13 +8,13 @@ use alloy_rpc_types_engine::{
PayloadError,
};
use assert_matches::assert_matches;
use reth_primitives::{Block, SealedBlock, TransactionSigned};
use reth_primitives_traits::proofs;
use reth_ethereum_primitives::{Block, TransactionSigned};
use reth_primitives_traits::{proofs, SealedBlock};
use reth_testing_utils::generators::{
self, random_block, random_block_range, BlockParams, BlockRangeParams, Rng,
};
fn transform_block<F: FnOnce(Block) -> Block>(src: SealedBlock, f: F) -> ExecutionPayload {
fn transform_block<F: FnOnce(Block) -> Block>(src: SealedBlock<Block>, f: F) -> ExecutionPayload {
let unsealed = src.into_block();
let mut transformed: Block = f(unsealed);
// Recalculate roots