pub(super) fn prune(&mut self, current_instant: Timestamp) -> PruneResult {
        let pending_deploys = prune_pending_deploys(&mut self.pending_deploys, current_instant);
        let pending_transfers = prune_pending_deploys(&mut self.pending_transfers, current_instant);

        // We prune from finalized deploys collection because expired deploys
        // can never be proposed again. This makes this collection smaller for
        // later iterations.
        let finalized = prune_deploys(&mut self.finalized_deploys, current_instant);

        // We return a total of pruned deploys, but for the deploys pruned
        // from the `finalized` collection we don't want to send
        // the expiration event.
        PruneResult::new(
            pending_deploys.len() + pending_transfers.len() + finalized.len(),
            [pending_deploys, pending_transfers].concat(),
        )
    }
/// Prunes expired deploy information from the BlockProposerState, returns the
/// hashes of deploys pruned.
Prunes expired deploy information from the BlockProposerState, returns the
hashes of deploys pruned.
Prunes expired deploy information from the BlockProposerState returns the hashes of deploys pruned .
pub(super) fn prune(&mut self, current_instant: Timestamp) -> PruneResult {
        let pending_deploys = prune_pending_deploys(&mut self.pending_deploys, current_instant);
        let pending_transfers = prune_pending_deploys(&mut self.pending_transfers, current_instant);
        // We prune from finalized deploys collection because expired deploys
        // can never be proposed again. This makes this collection smaller for
        // later iterations.
        let finalized = prune_deploys(&mut self.finalized_deploys, current_instant);
        // We return a total of pruned deploys, but for the deploys pruned
        // from the `finalized` collection we don't want to send
        // the expiration event.
        PruneResult::new(
            pending_deploys.len() + pending_transfers.len() + finalized.len(),
            [pending_deploys, pending_transfers].concat(),
        )
    }
pub ( super ) fn prune ( & mut self , current_instant : Timestamp ) -> PruneResult { let pending_deploys = prune_pending_deploys ( & mut self . pending_deploys , current_instant ) ; let pending_transfers = prune_pending_deploys ( & mut self . pending_transfers , current_instant ) ; // We prune from finalized deploys collection because expired deploys // can never be proposed again. This makes this collection smaller for // later iterations. let finalized = prune_deploys ( & mut self . finalized_deploys , current_instant ) ; // We return a total of pruned deploys, but for the deploys pruned // from the `finalized` collection we don't want to send // the expiration event. PruneResult :: new ( pending_deploys . len ( ) + pending_transfers . len ( ) + finalized . len ( ) , [ pending_deploys , pending_transfers ] . concat ( ) , ) }
Prunes expired deploy information from the BlockProposerState, returns the
hashes of deploys pruned.
Prunes expired deploy information from the BlockProposerState returns the hashes of deploys pruned .
&mut self
current_instant
Timestamp
&mut self
current_instant
Timestamp