pub fn add_to_queue(&mut self, height: u64, state_root_hash: &[u8]) {
        let state_root_hash = state_root_hash.into();
        if !self
            .state_root_prune_queue
            .iter()
            .any(|candidate| candidate.1 == state_root_hash)
        {
            debug!("Adding {} to pruning queue", hex::encode(&state_root_hash));
            self.state_root_prune_queue
                .push(PruneCandidate(height, state_root_hash));
        }
    }
/// Add a single state root to the pruning queue.
Add a single state root to the pruning queue.
Add a single state root to the pruning queue .
pub fn add_to_queue(&mut self, height: u64, state_root_hash: &[u8]) {
        let state_root_hash = state_root_hash.into();
        if !self
            .state_root_prune_queue
            .iter()
            .any(|candidate| candidate.1 == state_root_hash)
        {
            debug!("Adding {} to pruning queue", hex::encode(&state_root_hash));
            self.state_root_prune_queue
                .push(PruneCandidate(height, state_root_hash));
        }
    }
pub fn add_to_queue ( & mut self , height : u64 , state_root_hash : & [ u8 ] ) { let state_root_hash = state_root_hash . into ( ) ; if ! self . state_root_prune_queue . iter ( ) . any ( | candidate | candidate . 1 == state_root_hash ) { debug ! ( " " hex encode ( state_root_hash ) ) ; self . state_root_prune_queue . push ( PruneCandidate ( height , state_root_hash ) ) ; } }
Add a single state root to the pruning queue.
Add a single state root to the pruning queue .
&mut self
height
u64
state_root_hash
&[u8]
&mut self
height
u64
state_root_hash
&[u8]