added SealedHeaderFor alias to validate.rs and without_evm.rs (#14103)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Poulav Bhowmick
2025-01-30 21:25:34 +05:30
committed by GitHub
parent 54e1ddfdc1
commit 59c6e7e452
4 changed files with 13 additions and 8 deletions

View File

@ -48,6 +48,7 @@ reth-static-file.workspace = true
reth-trie = { workspace = true, features = ["metrics"] }
reth-trie-db = { workspace = true, features = ["metrics"] }
reth-trie-common = { workspace = true, optional = true }
reth-primitives-traits.workspace = true
# ethereum
alloy-eips.workspace = true
@ -109,4 +110,5 @@ arbitrary = [
"reth-stages-types?/arbitrary",
"reth-trie-common?/arbitrary",
"alloy-consensus/arbitrary",
"reth-primitives-traits/arbitrary",
]

View File

@ -4,6 +4,7 @@ use alloy_rlp::Decodable;
use reth_codecs::Compact;
use reth_node_builder::NodePrimitives;
use reth_primitives::{SealedBlock, SealedHeader, StaticFileSegment};
use reth_primitives_traits::SealedHeaderFor;
use reth_provider::{
providers::StaticFileProvider, BlockWriter, StageCheckpointWriter, StaticFileProviderFactory,
StaticFileWriter, StorageLocation,
@ -59,7 +60,7 @@ where
/// height.
fn append_first_block<Provider>(
provider_rw: &Provider,
header: &SealedHeader<<Provider::Primitives as NodePrimitives>::BlockHeader>,
header: &SealedHeaderFor<Provider::Primitives>,
total_difficulty: U256,
) -> Result<(), eyre::Error>
where