use beacon_chain::BeaconChain as RawBeaconChain; use beacon_chain::{ db::ClientDB, fork_choice::ForkChoice, parking_lot::RwLockReadGuard, slot_clock::SlotClock, CheckPoint, }; /// The network's API to the beacon chain. pub trait BeaconChain: Send + Sync { fn head(&self) -> RwLockReadGuard; fn finalized_head(&self) -> RwLockReadGuard; } impl BeaconChain for RawBeaconChain where T: ClientDB + Sized, U: SlotClock, F: ForkChoice, { fn head(&self) -> RwLockReadGuard { self.head() } fn finalized_head(&self) -> RwLockReadGuard { self.finalized_head() } }