Skip to content

Commit

Permalink
feat: add ForkChoiceSubscriptions to FullProvider supertrait (#10319
Browse files Browse the repository at this point in the history
)
  • Loading branch information
unitezen authored and fgimenez committed Aug 20, 2024
1 parent 176c4d7 commit 45849a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/storage/provider/src/traits/full.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::{
EvmEnvProvider, HeaderProvider, StageCheckpointReader, StateProviderFactory,
StaticFileProviderFactory, TransactionsProvider,
};
use reth_chain_state::CanonStateSubscriptions;
use reth_chain_state::{CanonStateSubscriptions, ForkChoiceSubscriptions};
use reth_db_api::database::Database;

/// Helper trait to unify all provider traits for simplicity.
Expand All @@ -19,6 +19,7 @@ pub trait FullProvider<DB: Database>:
+ ChainSpecProvider
+ ChangeSetReader
+ CanonStateSubscriptions
+ ForkChoiceSubscriptions
+ StageCheckpointReader
+ Clone
+ Unpin
Expand All @@ -36,6 +37,7 @@ impl<T, DB: Database> FullProvider<DB> for T where
+ ChainSpecProvider
+ ChangeSetReader
+ CanonStateSubscriptions
+ ForkChoiceSubscriptions
+ StageCheckpointReader
+ Clone
+ Unpin
Expand Down

0 comments on commit 45849a9

Please sign in to comment.