fn start_timed_phase_trasition(&mut self) -> Result<Vec<Message<NodeID>>, Error> {
        let (tx, rx) = channel();
        let _ = thread::spawn(move || {
            #[cfg(not(test))]
            let tick = periodic_ms(WAITING_TIME); // 2 minutes

            // We don't have to wait in tests as we wait for completion of message exchanges beforehand
            #[cfg(test)]
            let tick = periodic_ms(1_000); // 1 seconds
            {
                tick.recv().unwrap();
                tx.send(()).unwrap()
            }
        });
        rx.recv().unwrap();
        let mut rng = thread_rng();
        match self.key_gen {
            Some(ref mut key_gen) => key_gen.timed_phase_transition(&mut rng),
            None => Err(Error::QuicP2P("Keygen instance not found".to_string())),
        }
    }
// Timed Phase transition needs to be called if we do not finalize automatically
Timed Phase transition needs to be called if we do not finalize automatically
Timed Phase transition needs to be called if we do not finalize automatically
fn start_timed_phase_trasition(&mut self) -> Result<Vec<Message<NodeID>>, Error> {
        let (tx, rx) = channel();
        let _ = thread::spawn(move || {
            #[cfg(not(test))]
            let tick = periodic_ms(WAITING_TIME); // 2 minutes
            // We don't have to wait in tests as we wait for completion of message exchanges beforehand
            #[cfg(test)]
            let tick = periodic_ms(1_000); // 1 seconds
            {
                tick.recv().unwrap();
                tx.send(()).unwrap()
            }
        });
        rx.recv().unwrap();
        let mut rng = thread_rng();
        match self.key_gen {
            Some(ref mut key_gen) => key_gen.timed_phase_transition(&mut rng),
            None => Err(Error::QuicP2P("Keygen instance not found".to_string())),
        }
    }
fn start_timed_phase_trasition ( & mut self ) -> Result < Vec < Message < NodeID > > , Error > { let ( tx , rx ) = channel ( ) ; let _ = thread :: spawn ( move | | { # [ cfg ( not ( test ) ) ] let tick = periodic_ms ( WAITING_TIME ) ; // 2 minutes // We don't have to wait in tests as we wait for completion of message exchanges beforehand # [ cfg ( test ) ] let tick = periodic_ms ( 1_000 ) ; // 1 seconds { tick . recv ( ) . unwrap ( ) ; tx . send ( ( ) ) . unwrap ( ) } } ) ; rx . recv ( ) . unwrap ( ) ; let mut rng = thread_rng ( ) ; match self . key_gen { Some ( ref mut key_gen ) => key_gen . timed_phase_transition ( & mut rng ) , None => Err ( Error :: QuicP2P ( " " . to_string ( ) ) ) , } }
Timed Phase transition needs to be called if we do not finalize automatically
Timed Phase transition needs to be called if we do not finalize automatically
&mut self