pub fn on_state_change(&self, pool: &PoolReader<'_>) -> ChangeSet {
        let mut changeset = ChangeSet::new();
        self.purge_unvalidated_pool_by_expected_batch_height(pool, &mut changeset);
        self.purge_validated_pool_by_catch_up_package(pool, &mut changeset);
        self.purge_replicated_state_by_finalized_certified_height(pool);
        changeset
    }
/// Purge unvalidated and validated pools, and replicated states according
/// to the purging rules.
///
/// Pool purging is conveyed through the returned [ChangeSet] which has to
/// be applied by the caller, but state purging is directly communicated to
/// the state manager.
Purge unvalidated and validated pools, and replicated states according
to the purging rules.

Pool purging is conveyed through the returned [ChangeSet] which has to
be applied by the caller, but state purging is directly communicated to
the state manager.
Purge unvalidated and validated pools and replicated states according to the purging rules . Pool purging is conveyed through the returned [ ChangeSet ] which has to be applied by the caller but state purging is directly communicated to the state manager .
pub fn on_state_change(&self, pool: &PoolReader<'_>) -> ChangeSet {
        let mut changeset = ChangeSet::new();
        self.purge_unvalidated_pool_by_expected_batch_height(pool, &mut changeset);
        self.purge_validated_pool_by_catch_up_package(pool, &mut changeset);
        self.purge_replicated_state_by_finalized_certified_height(pool);
        changeset
    }
pub fn on_state_change ( & self , pool : & PoolReader < ' _ > ) -> ChangeSet { let mut changeset = ChangeSet :: new ( ) ; self . purge_unvalidated_pool_by_expected_batch_height ( pool , & mut changeset ) ; self . purge_validated_pool_by_catch_up_package ( pool , & mut changeset ) ; self . purge_replicated_state_by_finalized_certified_height ( pool ) ; changeset }
Purge unvalidated and validated pools, and replicated states according
to the purging rules.
Purge unvalidated and validated pools and replicated states according to the purging rules .
&self
pool
&PoolReader<'_>
&self
pool
&PoolReader<'_>