fn next()

in librabft-v2/src/record_store.rs [157:165]


    fn next(&mut self) -> Option<Self::Item> {
        if self.current_hash == self.store.initial_hash {
            return None;
        }
        let qc = self.store.quorum_certificate(self.current_hash).unwrap();
        let block = self.store.block(qc.value.certified_block_hash).unwrap();
        self.current_hash = block.value.previous_quorum_certificate_hash;
        Some(qc)
    }