Trait blockchain::consensus::Consensus
[−]
[src]
pub trait Consensus<H> { fn create_for(header: &H) -> Self; fn is_applicable(&self, header: &H) -> bool; fn mine(&self, header: &mut H); fn verify(&self, header: &H) -> bool; }
Required Methods
fn create_for(header: &H) -> Self
fn is_applicable(&self, header: &H) -> bool
fn mine(&self, header: &mut H)
fn verify(&self, header: &H) -> bool
Implementors
impl<H> Consensus<H> for FakeConsensus