mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-19 03:04:27 -05: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.
|
||||
|
||||
@@ -2609,6 +2609,7 @@ mod tests {
|
||||
use reth_engine_primitives::ForkchoiceStatus;
|
||||
use reth_ethereum_engine_primitives::EthEngineTypes;
|
||||
use reth_evm::test_utils::MockExecutorProvider;
|
||||
use reth_primitives::BlockExt;
|
||||
use reth_provider::test_utils::MockEthProvider;
|
||||
use reth_rpc_types_compat::engine::{block_to_payload_v1, payload::block_to_payload_v3};
|
||||
use reth_trie::updates::TrieUpdates;
|
||||
|
||||
Reference in New Issue
Block a user