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

@@ -1049,8 +1049,8 @@ mod tests {
use reth_chainspec::{ChainSpec, EthereumHardfork, MAINNET};
use reth_engine_primitives::BeaconEngineMessage;
use reth_ethereum_engine_primitives::{EthEngineTypes, EthereumEngineValidator};
use reth_ethereum_primitives::Block;
use reth_payload_builder::test_utils::spawn_test_payload_service;
use reth_primitives::{Block, TransactionSigned};
use reth_provider::test_utils::MockEthProvider;
use reth_tasks::TokioTaskExecutor;
use reth_testing_utils::generators::random_block;
@@ -1118,11 +1118,9 @@ mod tests {
let (mut handle, api) = setup_engine_api();
tokio::spawn(async move {
api.new_payload_v1(ExecutionPayloadV1::from_block_slow(
&Block::<TransactionSigned>::default(),
))
.await
.unwrap();
api.new_payload_v1(ExecutionPayloadV1::from_block_slow(&Block::default()))
.await
.unwrap();
});
assert_matches!(handle.from_api.recv().await, Some(BeaconEngineMessage::NewPayload { .. }));
}