pub fn prune(&mut self, finalized_epoch: Epoch) {
        self.snapshots.retain(|snapshot| {
            snapshot.beacon_state.slot > finalized_epoch.start_slot(T::slots_per_epoch())
        })
    }
/// Removes all snapshots from the queue that are less than or equal to the finalized epoch.
Removes all snapshots from the queue that are less than or equal to the finalized epoch.
Removes all snapshots from the queue that are less than or equal to the finalized epoch .
pub fn prune(&mut self, finalized_epoch: Epoch) {
        self.snapshots.retain(|snapshot| {
            snapshot.beacon_state.slot > finalized_epoch.start_slot(T::slots_per_epoch())
        })
    }
pub fn prune ( & mut self , finalized_epoch : Epoch ) { self . snapshots . retain ( | snapshot | { snapshot . beacon_state . slot > finalized_epoch . start_slot ( T :: slots_per_epoch ( ) ) } ) }
Removes all snapshots from the queue that are less than or equal to the finalized epoch.
Removes all snapshots from the queue that are less than or equal to the finalized epoch .
&mut self
finalized_epoch
Epoch