Skip to content

Commit

Permalink
chore(db): relax consistent view provider bound
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrasiuk committed Dec 27, 2024
1 parent 8f81f0c commit 2565d6c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/storage/provider/src/providers/consistent_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::{BlockNumReader, DatabaseProviderFactory, HeaderProvider};
use alloy_primitives::B256;
use reth_errors::ProviderError;
use reth_primitives::GotExpected;
use reth_storage_api::{BlockReader, DBProvider, StateCommitmentProvider};
use reth_storage_api::{DBProvider, StateCommitmentProvider};
use reth_storage_errors::provider::ProviderResult;

use reth_trie::HashedPostState;
Expand Down Expand Up @@ -33,7 +33,8 @@ pub struct ConsistentDbView<Factory> {

impl<Factory> ConsistentDbView<Factory>
where
Factory: DatabaseProviderFactory<Provider: BlockReader> + StateCommitmentProvider,
Factory: DatabaseProviderFactory<Provider: BlockNumReader + HeaderProvider>
+ StateCommitmentProvider,
{
/// Creates new consistent database view.
pub const fn new(factory: Factory, tip: Option<B256>) -> Self {
Expand Down

0 comments on commit 2565d6c

Please sign in to comment.