feat: make more block types generic (#12812)

This commit is contained in:
Arsenii Kulikov
2024-11-25 14:50:10 +04:00
committed by GitHub
parent 02824da4fc
commit dcaa06a01a
62 changed files with 534 additions and 333 deletions

View File

@ -5,7 +5,7 @@ use std::{
use futures_util::TryStreamExt;
use reth_codecs::Compact;
use reth_primitives_traits::BlockBody;
use reth_primitives_traits::{Block, BlockBody};
use tracing::*;
use alloy_primitives::TxNumber;
@ -151,7 +151,7 @@ where
+ StaticFileProviderFactory
+ StatsReader
+ BlockReader
+ BlockWriter<Body = D::Body>,
+ BlockWriter<Block: Block<Body = D::Body>>,
D: BodyDownloader<Body: BlockBody<Transaction: Compact>>,
{
/// Return the id of the stage