feat: Completely decouple rpc-types to standalone crate (#5193)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
evalir
2023-10-28 17:00:47 +09:00
committed by GitHub
parent ffe1a88417
commit 76e751eef4
53 changed files with 1617 additions and 957 deletions

View File

@@ -805,6 +805,7 @@ mod tests {
use reth_payload_builder::test_utils::spawn_test_payload_service;
use reth_primitives::{SealedBlock, B256, MAINNET};
use reth_provider::test_utils::MockEthProvider;
use reth_rpc_types_compat::engine::payload::execution_payload_from_sealed_block;
use reth_tasks::TokioTaskExecutor;
use std::sync::Arc;
use tokio::sync::mpsc::{unbounded_channel, UnboundedReceiver};
@@ -837,7 +838,9 @@ mod tests {
let (mut handle, api) = setup_engine_api();
tokio::spawn(async move {
api.new_payload_v1(SealedBlock::default().into()).await.unwrap();
api.new_payload_v1(execution_payload_from_sealed_block(SealedBlock::default()))
.await
.unwrap();
});
assert_matches!(handle.from_api.recv().await, Some(BeaconEngineMessage::NewPayload { .. }));
}