pub(crate) fn insert_cup_at_height(
    pool: &mut dyn MutableConsensusPool,
    registry: Arc<dyn RegistryClient>,
    subnet_id: SubnetId,
    backup_dir: &Path,
    height: Height,
) {
    let cup = read_cup_at_height(registry, subnet_id, backup_dir, height);
    pool.apply_changes(
        &SysTimeSource::new(),
        ChangeAction::AddToValidated(cup.into_message()).into(),
    );
}
/// Deserialize the CUP at the given height and inserts it into the pool.
Deserialize the CUP at the given height and inserts it into the pool.
Deserialize the CUP at the given height and inserts it into the pool .
pub(crate) fn insert_cup_at_height(
    pool: &mut dyn MutableConsensusPool,
    registry: Arc<dyn RegistryClient>,
    subnet_id: SubnetId,
    backup_dir: &Path,
    height: Height,
) {
    let cup = read_cup_at_height(registry, subnet_id, backup_dir, height);
    pool.apply_changes(
        &SysTimeSource::new(),
        ChangeAction::AddToValidated(cup.into_message()).into(),
    );
}
pub ( crate ) fn insert_cup_at_height ( pool : & mut dyn MutableConsensusPool , registry : Arc < dyn RegistryClient > , subnet_id : SubnetId , backup_dir : & Path , height : Height , ) { let cup = read_cup_at_height ( registry , subnet_id , backup_dir , height ) ; pool . apply_changes ( & SysTimeSource :: new ( ) , ChangeAction :: AddToValidated ( cup . into_message ( ) ) . into ( ) , ) ; }
Deserialize the CUP at the given height and inserts it into the pool.
Deserialize the CUP at the given height and inserts it into the pool .
pool
&mut dyn MutableConsensusPool
registry
Arc<dyn RegistryClient>
subnet_id
SubnetId
backup_dir
&Path
height
Height
pool
&mut dyn MutableConsensusPool
registry
Arc<dyn RegistryClient>
subnet_id
SubnetId
backup_dir
&Path
height
Height