From 91dd4171af35ed29d7bf09510b4fbbe25af46823 Mon Sep 17 00:00:00 2001 From: Roman Krasiuk Date: Fri, 27 Dec 2024 20:16:26 +0100 Subject: [PATCH] chore(db): relax consistent view provider bound (#13566) --- crates/storage/provider/src/providers/consistent_view.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/storage/provider/src/providers/consistent_view.rs b/crates/storage/provider/src/providers/consistent_view.rs index 479537f120cc..55e780b01b18 100644 --- a/crates/storage/provider/src/providers/consistent_view.rs +++ b/crates/storage/provider/src/providers/consistent_view.rs @@ -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; @@ -33,7 +33,8 @@ pub struct ConsistentDbView { impl ConsistentDbView where - Factory: DatabaseProviderFactory + StateCommitmentProvider, + Factory: DatabaseProviderFactory + + StateCommitmentProvider, { /// Creates new consistent database view. pub const fn new(factory: Factory, tip: Option) -> Self {