pub trait ConsensusStatsAPI {
// Required methods
fn is_initialized(&self) -> bool;
fn get_num_messages(&self, authority: usize) -> u64;
fn inc_num_messages(&mut self, authority: usize) -> u64;
fn get_num_user_transactions(&self, authority: usize) -> u64;
fn inc_num_user_transactions(&mut self, authority: usize) -> u64;
}
Expand description
ConsensusStats is versioned because we may iterate on the struct, and it is stored on disk.