mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix: implement StateCommitmentProvider for BlockchainProvider (#13620)
This commit is contained in:
@ -35,7 +35,9 @@ use reth_primitives::{
|
||||
};
|
||||
use reth_prune_types::{PruneCheckpoint, PruneSegment};
|
||||
use reth_stages_types::{StageCheckpoint, StageId};
|
||||
use reth_storage_api::{BlockBodyIndicesProvider, CanonChainTracker, OmmersProvider};
|
||||
use reth_storage_api::{
|
||||
BlockBodyIndicesProvider, CanonChainTracker, OmmersProvider, StateCommitmentProvider,
|
||||
};
|
||||
use reth_storage_errors::provider::ProviderResult;
|
||||
use std::{
|
||||
collections::BTreeMap,
|
||||
@ -255,6 +257,10 @@ impl<N: ProviderNodeTypes> DatabaseProviderFactory for BlockchainProvider<N> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<N: ProviderNodeTypes> StateCommitmentProvider for BlockchainProvider<N> {
|
||||
type StateCommitment = N::StateCommitment;
|
||||
}
|
||||
|
||||
impl<N: ProviderNodeTypes> StaticFileProviderFactory for BlockchainProvider<N> {
|
||||
fn static_file_provider(&self) -> StaticFileProvider<Self::Primitives> {
|
||||
self.database.static_file_provider()
|
||||
|
||||
Reference in New Issue
Block a user