mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-30 03:01:58 -04:00
feat: make more block types generic (#12812)
This commit is contained in:
@@ -21,11 +21,15 @@ use tracing::{debug, error};
|
||||
/// A helper trait with requirements for [`ProviderNodeTypes`] to be used within
|
||||
/// [`PersistenceService`].
|
||||
pub trait PersistenceNodeTypes:
|
||||
ProviderNodeTypes<Primitives: FullNodePrimitives<BlockBody = BlockBody>>
|
||||
ProviderNodeTypes<
|
||||
Primitives: FullNodePrimitives<Block = reth_primitives::Block, BlockBody = BlockBody>,
|
||||
>
|
||||
{
|
||||
}
|
||||
impl<T> PersistenceNodeTypes for T where
|
||||
T: ProviderNodeTypes<Primitives: FullNodePrimitives<BlockBody = BlockBody>>
|
||||
T: ProviderNodeTypes<
|
||||
Primitives: FullNodePrimitives<Block = reth_primitives::Block, BlockBody = BlockBody>,
|
||||
>
|
||||
{
|
||||
}
|
||||
/// Writes parts of reth's in memory tree state to the database and static files.
|
||||
|
||||
Reference in New Issue
Block a user