chore: Add reth rustfmt

This commit is contained in:
sprites0
2025-06-24 02:27:40 +00:00
parent d9e7302e76
commit 0c8229370f
28 changed files with 221 additions and 573 deletions

View File

@ -2,7 +2,7 @@ use clap::{Args, Parser};
use reth::builder::NodeHandle;
use reth_hl::{
chainspec::parser::HlChainSpecParser,
node::{cli::Cli, HlNode, storage::tables::Tables},
node::{cli::Cli, storage::tables::Tables, HlNode},
};
// We use jemalloc for performance reasons
@ -26,14 +26,10 @@ fn main() -> eyre::Result<()> {
Cli::<HlChainSpecParser, NoArgs>::parse().run(|builder, _| async move {
builder.builder.database.create_tables_for::<Tables>()?;
let (node, engine_handle_tx) = HlNode::new();
let NodeHandle {
node,
node_exit_future: exit_future,
} = builder.node(node).launch().await?;
let NodeHandle { node, node_exit_future: exit_future } =
builder.node(node).launch().await?;
engine_handle_tx
.send(node.beacon_engine_handle.clone())
.unwrap();
engine_handle_tx.send(node.beacon_engine_handle.clone()).unwrap();
exit_future.await
})?;