fn synchronize_dependency(
        &mut self,
        rng: &mut NodeRng,
        missing_dependency: Dependency<TestContext>,
        recipient: ValidatorId,
        sender: ValidatorId,
        delivery_time: Timestamp,
    ) -> TestRunResult<Vec<HighwayMessage>> {
        match self
            .node_mut(&sender)?
            .validator_mut()
            .highway()
            .get_dependency(&missing_dependency)
        {
            GetDepOutcome::Vertex(vv) => {
                self.add_vertex(rng, recipient, sender, vv.0, delivery_time)
            }
            GetDepOutcome::Evidence(_) | GetDepOutcome::None => Err(
                TestRunError::SenderMissingDependency(sender, missing_dependency),
            ),
        }
    }
// Synchronizes `validator` in case of missing dependencies.
//
// If validator has missing dependencies then we have to add them first.
// We don't want to test synchronization, and the Highway theory assumes
// that when units are added then all their dependencies are satisfied.
Synchronizes `validator` in case of missing dependencies.
If validator has missing dependencies then we have to add them first.
We don't want to test synchronization, and the Highway theory assumes
that when units are added then all their dependencies are satisfied.
Synchronizes ` validator ` in case of missing dependencies . If validator has missing dependencies then we have to add them first . We don ' t want to test synchronization and the Highway theory assumes that when units are added then all their dependencies are satisfied .
fn synchronize_dependency(
        &mut self,
        rng: &mut NodeRng,
        missing_dependency: Dependency<TestContext>,
        recipient: ValidatorId,
        sender: ValidatorId,
        delivery_time: Timestamp,
    ) -> TestRunResult<Vec<HighwayMessage>> {
        match self
            .node_mut(&sender)?
            .validator_mut()
            .highway()
            .get_dependency(&missing_dependency)
        {
            GetDepOutcome::Vertex(vv) => {
                self.add_vertex(rng, recipient, sender, vv.0, delivery_time)
            }
            GetDepOutcome::Evidence(_) | GetDepOutcome::None => Err(
                TestRunError::SenderMissingDependency(sender, missing_dependency),
            ),
        }
    }
fn synchronize_dependency ( & mut self , rng : & mut NodeRng , missing_dependency : Dependency < TestContext > , recipient : ValidatorId , sender : ValidatorId , delivery_time : Timestamp , ) -> TestRunResult < Vec < HighwayMessage > > { match self . node_mut ( & sender ) ? . validator_mut ( ) . highway ( ) . get_dependency ( & missing_dependency ) { GetDepOutcome :: Vertex ( vv ) => { self . add_vertex ( rng , recipient , sender , vv . 0 , delivery_time ) } GetDepOutcome :: Evidence ( _ ) | GetDepOutcome :: None => Err ( TestRunError :: SenderMissingDependency ( sender , missing_dependency ) , ) , } }
Synchronizes `validator` in case of missing dependencies.
Synchronizes ` validator ` in case of missing dependencies .
&mut self
rng
&mut NodeRng
missing_dependency
Dependency<TestContext>
recipient
ValidatorId
sender
ValidatorId
delivery_time
Timestamp
&mut self
rng
&mut NodeRng
missing_dependency
Dependency<TestContext>
recipient
ValidatorId
sender
ValidatorId
delivery_time
Timestamp