Skip to main content

StatePersistence

Trait StatePersistence 

Source
pub trait StatePersistence: Send {
    // Required methods
    fn save_current_view(&mut self, view: ViewNumber);
    fn save_locked_qc(&mut self, qc: &QuorumCertificate);
    fn save_highest_qc(&mut self, qc: &QuorumCertificate);
    fn save_last_committed_height(&mut self, height: Height);
    fn save_current_epoch(&mut self, epoch: &Epoch);
    fn save_last_app_hash(&mut self, hash: BlockHash);
    fn flush(&self);
}
Expand description

Trait for persisting critical consensus state across restarts.

Required Methods§

Implementors§