Skip to content

Commit

Permalink
fix: implement StateCommitmentProvider for BlockchainProvider (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrasiuk authored Jan 2, 2025
1 parent 6aaf6a5 commit 1b9bdcc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion crates/storage/provider/src/providers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 1b9bdcc

Please sign in to comment.