reth_provider/traits/
tree_viewer.rs

1use crate::BlockchainTreePendingStateProvider;
2use reth_blockchain_tree_api::{BlockchainTreeEngine, BlockchainTreeViewer};
3use reth_chain_state::CanonStateSubscriptions;
4
5/// Helper trait to combine all the traits we need for the `BlockchainProvider`
6///
7/// This is a temporary solution
8pub trait TreeViewer:
9    BlockchainTreeViewer
10    + BlockchainTreePendingStateProvider
11    + CanonStateSubscriptions
12    + BlockchainTreeEngine
13{
14}
15
16impl<T> TreeViewer for T where
17    T: BlockchainTreeViewer
18        + BlockchainTreePendingStateProvider
19        + CanonStateSubscriptions
20        + BlockchainTreeEngine
21{
22}