diff --git a/src/main.rs b/src/main.rs index 00c983b5e..1f91537ec 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,5 @@ use clap::Parser; use reth::builder::NodeHandle; -use reth_hl::tx_forwarder::{self, EthForwarderApiServer}; use reth_hl::{ chainspec::parser::HlChainSpecParser, node::{ @@ -8,6 +7,7 @@ use reth_hl::{ storage::tables::Tables, HlNode, }, + tx_forwarder::{self, EthForwarderApiServer}, }; use tracing::info; diff --git a/src/node/evm/config.rs b/src/node/evm/config.rs index d95ff27ca..631387291 100644 --- a/src/node/evm/config.rs +++ b/src/node/evm/config.rs @@ -133,13 +133,12 @@ where requests_hash, }; - let read_precompile_calls = ctx.read_precompile_calls.clone().into(); Ok(Self::Block { header, body: HlBlockBody { inner: BlockBody { transactions, ommers: Default::default(), withdrawals }, sidecars: None, - read_precompile_calls: Some(read_precompile_calls), + read_precompile_calls: Some(ctx.read_precompile_calls.clone().into()), }, }) } diff --git a/src/pseudo_peer/config.rs b/src/pseudo_peer/config.rs index d029ec04f..11ed0d3de 100644 --- a/src/pseudo_peer/config.rs +++ b/src/pseudo_peer/config.rs @@ -6,8 +6,7 @@ use super::{ BlockSourceBoxed, CachedBlockSource, HlNodeBlockSource, LocalBlockSource, S3BlockSource, }, }; -use std::path::PathBuf; -use std::sync::Arc; +use std::{path::PathBuf, sync::Arc}; #[derive(Debug, Clone)] pub struct BlockSourceConfig { diff --git a/src/pseudo_peer/sources/hl_node.rs b/src/pseudo_peer/sources/hl_node.rs index 9ad35e7cb..07cafe3b7 100644 --- a/src/pseudo_peer/sources/hl_node.rs +++ b/src/pseudo_peer/sources/hl_node.rs @@ -1,6 +1,8 @@ -use std::io::{BufRead, BufReader}; -use std::path::{Path, PathBuf}; -use std::sync::Arc; +use std::{ + io::{BufRead, BufReader}, + path::{Path, PathBuf}, + sync::Arc, +}; use eyre::ContextCompat; use futures::future::BoxFuture;