mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: cargo fix, fmt and misc fixes
This commit is contained in:
@ -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;
|
||||
|
||||
|
||||
@ -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()),
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user