mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: Add reth rustfmt
This commit is contained in:
@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user