fn purge_replicated_state_by_finalized_certified_height(&self, pool_reader: &PoolReader<'_>) {
        let finalized_tip = pool_reader.get_finalized_tip();
        let finalized_certified_height = finalized_tip.context.certified_height;
        let prev_finalized_certified_height = self
            .prev_finalized_certified_height
            .replace(finalized_certified_height);
        if finalized_certified_height > prev_finalized_certified_height {
            self.state_manager
                .remove_states_below(finalized_certified_height);
            trace!(
                self.log,
                "Purge replicated states below {:?}",
                finalized_certified_height
            );
        }
        self.metrics
            .replicated_state_purge_height
            .set(finalized_certified_height.get() as i64);
    }
/// Ask state manager to purge all states below the certified height
/// recorded in the block in the latest finalized block.
Ask state manager to purge all states below the certified height
recorded in the block in the latest finalized block.
Ask state manager to purge all states below the certified height recorded in the block in the latest finalized block .
fn purge_replicated_state_by_finalized_certified_height(&self, pool_reader: &PoolReader<'_>) {
        let finalized_tip = pool_reader.get_finalized_tip();
        let finalized_certified_height = finalized_tip.context.certified_height;
        let prev_finalized_certified_height = self
            .prev_finalized_certified_height
            .replace(finalized_certified_height);
        if finalized_certified_height > prev_finalized_certified_height {
            self.state_manager
                .remove_states_below(finalized_certified_height);
            trace!(
                self.log,
                "Purge replicated states below {:?}",
                finalized_certified_height
            );
        }
        self.metrics
            .replicated_state_purge_height
            .set(finalized_certified_height.get() as i64);
    }
fn purge_replicated_state_by_finalized_certified_height ( & self , pool_reader : & PoolReader < ' _ > ) { let finalized_tip = pool_reader . get_finalized_tip ( ) ; let finalized_certified_height = finalized_tip . context . certified_height ; let prev_finalized_certified_height = self . prev_finalized_certified_height . replace ( finalized_certified_height ) ; if finalized_certified_height > prev_finalized_certified_height { self . state_manager . remove_states_below ( finalized_certified_height ) ; trace ! ( self log " " finalized_certified_height ) ; } self . metrics . replicated_state_purge_height . set ( finalized_certified_height . get ( ) as i64 ) ; }
Ask state manager to purge all states below the certified height
recorded in the block in the latest finalized block.
Ask state manager to purge all states below the certified height recorded in the block in the latest finalized block .
&self
pool_reader
&PoolReader<'_>
&self
pool_reader
&PoolReader<'_>