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 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;
|
||||||
|
|
||||||
|
|||||||
@ -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()),
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user