InMemoryStateAccess

Trait InMemoryStateAccess 

Source
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§

Source

type Primitives: NodePrimitives

Required Methods§

Source

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.

Source§

type Primitives = <N as NodeTypes>::Primitives

Source§

fn canonical_in_memory_state(&self) -> CanonicalInMemoryState<Self::Primitives>

Implementors§