fn handle_new_unit(
            &mut self,
            vidx: ValidatorIndex,
            uhash: &<TestContext as Context>::Hash,
        ) -> Vec<Effect<TestContext>> {
            let validator = &mut self.active_validators[vidx];
            let delivery_timestamp = self.state.unit(uhash).timestamp + 1.into();
            let effects =
                validator.on_new_unit(uhash, delivery_timestamp, &self.state, self.instance_id);
            self.schedule_timer(vidx, &effects);
            self.add_new_unit(&effects);
            effects
        }
/// Handle new unit by validator `vidx`.
/// Since all validators use the same state, that unit should be added already. Panics if
/// not. Returns effect created when handling new unit.
Handle new unit by validator `vidx`.
Since all validators use the same state, that unit should be added already. Panics if
not. Returns effect created when handling new unit.
Handle new unit by validator ` vidx ` . Since all validators use the same state that unit should be added already . Panics if not . Returns effect created when handling new unit .
fn handle_new_unit(
            &mut self,
            vidx: ValidatorIndex,
            uhash: &<TestContext as Context>::Hash,
        ) -> Vec<Effect<TestContext>> {
            let validator = &mut self.active_validators[vidx];
            let delivery_timestamp = self.state.unit(uhash).timestamp + 1.into();
            let effects =
                validator.on_new_unit(uhash, delivery_timestamp, &self.state, self.instance_id);
            self.schedule_timer(vidx, &effects);
            self.add_new_unit(&effects);
            effects
        }
fn handle_new_unit ( & mut self , vidx : ValidatorIndex , uhash : & < TestContext as Context > :: Hash , ) -> Vec < Effect < TestContext > > { let validator = & mut self . active_validators [ vidx ] ; let delivery_timestamp = self . state . unit ( uhash ) . timestamp + 1 . into ( ) ; let effects = validator . on_new_unit ( uhash , delivery_timestamp , & self . state , self . instance_id ) ; self . schedule_timer ( vidx , & effects ) ; self . add_new_unit ( & effects ) ; effects }
Handle new unit by validator `vidx`.
Handle new unit by validator ` vidx ` .
&mut self
vidx
ValidatorIndex
uhash
&<TestContext as Context>::Hash
&mut self
vidx
ValidatorIndex
uhash
&<TestContext as Context>::Hash