pub trait InMemoryStateAccess {
type Primitives: NodePrimitives;
// Required method
fn canonical_in_memory_state(
&self,
) -> CanonicalInMemoryState<Self::Primitives>;
}Expand description
Trait to access the in-memory canonical state from a provider.
BlockchainProvider has canonical_in_memory_state() as an inherent method
but it’s not exposed via any reth trait. This trait bridges that gap so
the block producer can receive the handle generically.
Required Associated Types§
type Primitives: NodePrimitives
Required Methods§
fn canonical_in_memory_state(&self) -> CanonicalInMemoryState<Self::Primitives>
Implementations on Foreign Types§
Source§impl<N> InMemoryStateAccess for BlockchainProvider<N>where
N: ProviderNodeTypes,
Implement InMemoryStateAccess for reth’s BlockchainProvider.
impl<N> InMemoryStateAccess for BlockchainProvider<N>where
N: ProviderNodeTypes,
Implement InMemoryStateAccess for reth’s BlockchainProvider.