chore: cargo fix, fmt and misc fixes

This commit is contained in:
sprites0
2025-07-02 16:06:32 +00:00
parent 8c7e667891
commit f605c56bdf
4 changed files with 8 additions and 8 deletions

View File

@ -1,6 +1,5 @@
use clap::Parser; use clap::Parser;
use reth::builder::NodeHandle; use reth::builder::NodeHandle;
use reth_hl::tx_forwarder::{self, EthForwarderApiServer};
use reth_hl::{ use reth_hl::{
chainspec::parser::HlChainSpecParser, chainspec::parser::HlChainSpecParser,
node::{ node::{
@ -8,6 +7,7 @@ use reth_hl::{
storage::tables::Tables, storage::tables::Tables,
HlNode, HlNode,
}, },
tx_forwarder::{self, EthForwarderApiServer},
}; };
use tracing::info; use tracing::info;

View File

@ -133,13 +133,12 @@ where
requests_hash, requests_hash,
}; };
let read_precompile_calls = ctx.read_precompile_calls.clone().into();
Ok(Self::Block { Ok(Self::Block {
header, header,
body: HlBlockBody { body: HlBlockBody {
inner: BlockBody { transactions, ommers: Default::default(), withdrawals }, inner: BlockBody { transactions, ommers: Default::default(), withdrawals },
sidecars: None, sidecars: None,
read_precompile_calls: Some(read_precompile_calls), read_precompile_calls: Some(ctx.read_precompile_calls.clone().into()),
}, },
}) })
} }

View File

@ -6,8 +6,7 @@ use super::{
BlockSourceBoxed, CachedBlockSource, HlNodeBlockSource, LocalBlockSource, S3BlockSource, BlockSourceBoxed, CachedBlockSource, HlNodeBlockSource, LocalBlockSource, S3BlockSource,
}, },
}; };
use std::path::PathBuf; use std::{path::PathBuf, sync::Arc};
use std::sync::Arc;
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub struct BlockSourceConfig { pub struct BlockSourceConfig {

View File

@ -1,6 +1,8 @@
use std::io::{BufRead, BufReader}; use std::{
use std::path::{Path, PathBuf}; io::{BufRead, BufReader},
use std::sync::Arc; path::{Path, PathBuf},
sync::Arc,
};
use eyre::ContextCompat; use eyre::ContextCompat;
use futures::future::BoxFuture; use futures::future::BoxFuture;