Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: rename EngineApiTreeHandler #10140

Merged
merged 1 commit into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions crates/engine/tree/src/tree/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ pub enum TreeAction {
/// This type is responsible for processing engine API requests, maintaining the canonical state and
/// emitting events.
#[derive(Debug)]
pub struct EngineApiTreeHandlerImpl<P, E, T: EngineTypes> {
pub struct EngineApiTreeHandler<P, E, T: EngineTypes> {
provider: P,
executor_provider: E,
consensus: Arc<dyn Consensus>,
Expand Down Expand Up @@ -387,7 +387,7 @@ pub struct EngineApiTreeHandlerImpl<P, E, T: EngineTypes> {
metrics: EngineApiMetrics,
}

impl<P, E, T> EngineApiTreeHandlerImpl<P, E, T>
impl<P, E, T> EngineApiTreeHandler<P, E, T>
where
P: BlockReader + StateProviderFactory + Clone + 'static,
E: BlockExecutorProvider,
Expand Down Expand Up @@ -1942,7 +1942,7 @@ mod tests {
use tokio::sync::mpsc::unbounded_channel;

struct TestHarness {
tree: EngineApiTreeHandlerImpl<MockEthProvider, MockExecutorProvider, EthEngineTypes>,
tree: EngineApiTreeHandler<MockEthProvider, MockExecutorProvider, EthEngineTypes>,
to_tree_tx: Sender<FromEngine<BeaconEngineMessage<EthEngineTypes>>>,
from_tree_rx: UnboundedReceiver<EngineApiEvent>,
blocks: Vec<ExecutedBlock>,
Expand Down Expand Up @@ -1973,7 +1973,7 @@ mod tests {
let (to_payload_service, _payload_command_rx) = unbounded_channel();
let payload_builder = PayloadBuilderHandle::new(to_payload_service);

let tree = EngineApiTreeHandlerImpl::new(
let tree = EngineApiTreeHandler::new(
provider,
executor_provider.clone(),
consensus,
Expand Down
4 changes: 2 additions & 2 deletions crates/ethereum/engine/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use reth_engine_tree::{
download::BasicBlockDownloader,
engine::{EngineApiRequestHandler, EngineHandler},
persistence::PersistenceHandle,
tree::{EngineApiTreeHandlerImpl, TreeConfig},
tree::{EngineApiTreeHandler, TreeConfig},
};
pub use reth_engine_tree::{
chain::{ChainEvent, ChainOrchestrator},
Expand Down Expand Up @@ -81,7 +81,7 @@ where

let canonical_in_memory_state = blockchain_db.canonical_in_memory_state();

let from_tree = EngineApiTreeHandlerImpl::spawn_new(
let from_tree = EngineApiTreeHandler::spawn_new(
blockchain_db,
executor_factory,
consensus,
Expand Down
Loading