fn update_current_round()

in librabft-v2/src/record_store.rs [207:219]


    fn update_current_round(&mut self, round: Round) {
        if round <= self.current_round {
            return;
        }
        self.current_round = round;
        self.current_proposed_block = None;
        self.current_timeouts = HashMap::new();
        self.current_votes = HashMap::new();
        self.current_timeouts_weight = 0;
        self.current_election = ElectionState::Ongoing {
            ballot: HashMap::new(),
        };
    }