mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: generalize Block impls (#14133)
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
use crate::{providers::NodeTypesForProvider, DatabaseProvider};
|
||||
use reth_db::transaction::{DbTx, DbTxMut};
|
||||
use reth_node_types::{FullNodePrimitives, FullSignedTx};
|
||||
use reth_primitives_traits::FullBlockHeader;
|
||||
use reth_storage_api::{ChainStorageReader, ChainStorageWriter, EthStorage};
|
||||
|
||||
/// Trait that provides access to implementations of [`ChainStorage`]
|
||||
@ -18,13 +19,14 @@ pub trait ChainStorage<Primitives: FullNodePrimitives>: Send + Sync {
|
||||
Types: NodeTypesForProvider<Primitives = Primitives>;
|
||||
}
|
||||
|
||||
impl<N, T> ChainStorage<N> for EthStorage<T>
|
||||
impl<N, T, H> ChainStorage<N> for EthStorage<T, H>
|
||||
where
|
||||
T: FullSignedTx,
|
||||
H: FullBlockHeader,
|
||||
N: FullNodePrimitives<
|
||||
Block = reth_primitives::Block<T>,
|
||||
BlockHeader = alloy_consensus::Header,
|
||||
BlockBody = reth_primitives::BlockBody<T>,
|
||||
Block = reth_primitives::Block<T, H>,
|
||||
BlockHeader = H,
|
||||
BlockBody = reth_primitives::BlockBody<T, H>,
|
||||
SignedTx = T,
|
||||
>,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user