Trait narwhal_consensus::consensus::ConsensusProtocol
source · [−]pub trait ConsensusProtocol {
fn process_certificate(
&mut self,
state: &mut ConsensusState,
consensus_index: SequenceNumber,
certificate: Certificate
) -> StoreResult<Vec<ConsensusOutput>>;
fn update_committee(&mut self, new_committee: Committee) -> StoreResult<()>;
}
Expand description
Describe how to sequence input certificates.
Required Methods
sourcefn process_certificate(
fn process_certificate(
&mut self,
state: &mut ConsensusState,
consensus_index: SequenceNumber,
certificate: Certificate
) -> StoreResult<Vec<ConsensusOutput>>
source