pub fn record(&mut self, round: u32, validators: Vec<String>) -> Result<(), Box<dyn Error>> {
        self.results.insert(Round(round), validators);
        let file = File::create(&self.file_path)?;
        serde_yaml::to_writer(&file, &self.results)?;
        Ok(())
    }
/// Record the remaining validators after each TPS round
Record the remaining validators after each TPS round
Record the remaining validators after each TPS round
pub fn record(&mut self, round: u32, validators: Vec<String>) -> Result<(), Box<dyn Error>> {
        self.results.insert(Round(round), validators);
        let file = File::create(&self.file_path)?;
        serde_yaml::to_writer(&file, &self.results)?;
        Ok(())
    }
pub fn record ( & mut self , round : u32 , validators : Vec < String > ) -> Result < ( ) , Box < dyn Error > > { self . results . insert ( Round ( round ) , validators ) ; let file = File :: create ( & self . file_path ) ? ; serde_yaml :: to_writer ( & file , & self . results ) ? ; Ok ( ( ) ) }
Record the remaining validators after each TPS round
Record the remaining validators after each TPS round
&mut self
round
u32
validators
Vec<String>