fn purge_validated_pool_by_catch_up_package(
        &self,
        pool_reader: &PoolReader<'_>,
        changeset: &mut ChangeSet,
    ) -> bool {
        if let Some(purge_height) = get_purge_height(pool_reader) {
            if purge_height < self.state_manager.latest_state_height() {
                changeset.push(ChangeAction::PurgeValidatedBelow(purge_height));
                trace!(self.log, "Purge validated pool below {:?}", purge_height);
                self.metrics
                    .validated_pool_purge_height
                    .set(purge_height.get() as i64);
                true
            } else {
                warn!(
                    every_n_seconds => 30,
                    self.log,
                    "Execution state is not yet available at {:?} that is below \
                    CUP height at {:?}. Cancel purge.",
                    purge_height,
                    pool_reader.get_catch_up_height()
                );
                false
            }
        } else {
            false
        }
    }
/// Validated artifacts older than the latest CatchUpPackage height can be
/// purged from the pool. However, in order to better help peers catch up,
/// we still keep a minimum chain length below catch-up height.
///
/// Return true if a PurgeAction is taken.
Validated artifacts older than the latest CatchUpPackage height can be
purged from the pool. However, in order to better help peers catch up,
we still keep a minimum chain length below catch-up height.

Return true if a PurgeAction is taken.
Validated artifacts older than the latest CatchUpPackage height can be purged from the pool . However in order to better help peers catch up we still keep a minimum chain length below catch - up height . Return true if a PurgeAction is taken .
fn purge_validated_pool_by_catch_up_package(
        &self,
        pool_reader: &PoolReader<'_>,
        changeset: &mut ChangeSet,
    ) -> bool {
        if let Some(purge_height) = get_purge_height(pool_reader) {
            if purge_height < self.state_manager.latest_state_height() {
                changeset.push(ChangeAction::PurgeValidatedBelow(purge_height));
                trace!(self.log, "Purge validated pool below {:?}", purge_height);
                self.metrics
                    .validated_pool_purge_height
                    .set(purge_height.get() as i64);
                true
            } else {
                warn!(
                    every_n_seconds => 30,
                    self.log,
                    "Execution state is not yet available at {:?} that is below \
                    CUP height at {:?}. Cancel purge.",
                    purge_height,
                    pool_reader.get_catch_up_height()
                );
                false
            }
        } else {
            false
        }
    }
fn purge_validated_pool_by_catch_up_package ( & self , pool_reader : & PoolReader < ' _ > , changeset : & mut ChangeSet , ) -> bool { if let Some ( purge_height ) = get_purge_height ( pool_reader ) { if purge_height < self . state_manager . latest_state_height ( ) { changeset . push ( ChangeAction :: PurgeValidatedBelow ( purge_height ) ) ; trace ! ( self log " " purge_height ) ; self . metrics . validated_pool_purge_height . set ( purge_height . get ( ) as i64 ) ; true } else { warn ! ( every_n_seconds 30 self log " \
 " purge_height pool_reader get_catch_up_height ( ) ) ; false } } else { false } }
Validated artifacts older than the latest CatchUpPackage height can be
purged from the pool.
Validated artifacts older than the latest CatchUpPackage height can be purged from the pool .
&self
pool_reader
&PoolReader<'_>
changeset
&mut ChangeSet
&self
pool_reader
&PoolReader<'_>
changeset
&mut ChangeSet