diff --git a/crates/stages/stages/src/stages/headers.rs b/crates/stages/stages/src/stages/headers.rs index 7ca9cae590..2a104d7eb6 100644 --- a/crates/stages/stages/src/stages/headers.rs +++ b/crates/stages/stages/src/stages/headers.rs @@ -4,7 +4,7 @@ use alloy_primitives::{BlockHash, BlockNumber, Bytes, B256}; use futures_util::StreamExt; use reth_config::config::EtlConfig; use reth_consensus::HeaderValidator; -use reth_db::{tables, transaction::DbTx, RawKey, RawTable, RawValue}; +use reth_db::{table::Value, tables, transaction::DbTx, RawKey, RawTable, RawValue}; use reth_db_api::{ cursor::{DbCursorRO, DbCursorRW}, transaction::DbTxMut, @@ -13,7 +13,7 @@ use reth_db_api::{ use reth_etl::Collector; use reth_network_p2p::headers::{downloader::HeaderDownloader, error::HeadersDownloaderError}; use reth_primitives::{NodePrimitives, SealedHeader, StaticFileSegment}; -use reth_primitives_traits::serde_bincode_compat; +use reth_primitives_traits::{serde_bincode_compat, FullBlockHeader}; use reth_provider::{ providers::StaticFileWriter, BlockHashReader, DBProvider, HeaderProvider, HeaderSyncGap, HeaderSyncGapProvider, StaticFileProviderFactory, @@ -93,11 +93,9 @@ where /// database table. fn write_headers
(&mut self, provider: &P) -> Result
where
Provider: DBProvider