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

@ -1,7 +1,9 @@
use crate::{
chainspec::HlChainSpec,
node::rpc::{HlEthApi, HlNodeCore},
node::{HlBlock, HlPrimitives},
node::{
rpc::{HlEthApi, HlNodeCore},
HlBlock, HlPrimitives,
},
};
use alloy_consensus::BlockHeader;
use alloy_primitives::B256;
@ -52,10 +54,7 @@ where
let block_hash = block.hash();
let excess_blob_gas = block.excess_blob_gas();
let timestamp = block.timestamp();
let blob_params = self
.provider()
.chain_spec()
.blob_params_at_timestamp(timestamp);
let blob_params = self.provider().chain_spec().blob_params_at_timestamp(timestamp);
return block
.body()
@ -163,10 +162,7 @@ where
.await
.map_err(Self::Error::from_eth_err)?
.ok_or(EthApiError::HeaderNotFound(hash.into()))?;
let blob_params = self
.provider()
.chain_spec()
.blob_params_at_timestamp(meta.timestamp);
let blob_params = self.provider().chain_spec().blob_params_at_timestamp(meta.timestamp);
Ok(EthReceiptBuilder::new(&tx, meta, &receipt, &all_receipts, blob_params)?.build())
}