chore(rpc): config network specific transaction type in node builder (#10417)

This commit is contained in:
Emilia Hane
2024-08-22 16:36:38 +02:00
committed by GitHub
parent 7fb9a04337
commit 7d8196e29c
54 changed files with 518 additions and 272 deletions

View File

@ -8,6 +8,7 @@ use reth_rpc::EthApi;
use reth_rpc_builder::{RpcServerConfig, TransportRpcModuleConfig};
use reth_rpc_eth_api::EthApiClient;
use reth_rpc_server_types::RpcModuleSelection;
use reth_rpc_types::{RichBlock, Transaction};
use std::{
future::Future,
pin::Pin,
@ -74,7 +75,7 @@ async fn test_rpc_middleware() {
.unwrap();
let client = handle.http_client().unwrap();
EthApiClient::protocol_version(&client).await.unwrap();
EthApiClient::<Transaction, RichBlock>::protocol_version(&client).await.unwrap();
let count = mylayer.count.load(Ordering::Relaxed);
assert_eq!(count, 1);
}