Skip to content

Commit a6b9472

Browse files
authored
fix: use generic header (#20250)
1 parent 6636d2a commit a6b9472

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

crates/stages/stages/src/stages/headers.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ use reth_network_p2p::headers::{
1414
downloader::{HeaderDownloader, HeaderSyncGap, SyncTarget},
1515
error::HeadersDownloaderError,
1616
};
17-
use reth_primitives_traits::{serde_bincode_compat, FullBlockHeader, NodePrimitives, SealedHeader};
17+
use reth_primitives_traits::{
18+
serde_bincode_compat, FullBlockHeader, HeaderTy, NodePrimitives, SealedHeader,
19+
};
1820
use reth_provider::{
1921
providers::StaticFileWriter, BlockHashReader, DBProvider, HeaderSyncGapProvider,
2022
StaticFileProviderFactory,
@@ -333,8 +335,9 @@ where
333335
(input.unwind_to + 1)..,
334336
)?;
335337
provider.tx_ref().unwind_table_by_num::<tables::CanonicalHeaders>(input.unwind_to)?;
336-
let unfinalized_headers_unwound =
337-
provider.tx_ref().unwind_table_by_num::<tables::Headers>(input.unwind_to)?;
338+
let unfinalized_headers_unwound = provider.tx_ref().unwind_table_by_num::<tables::Headers<
339+
HeaderTy<Provider::Primitives>,
340+
>>(input.unwind_to)?;
338341

339342
// determine how many headers to unwind from the static files based on the highest block and
340343
// the unwind_to block

0 commit comments

Comments
 (0)