Struct authority_round::AuthorityRound[][src]

pub struct AuthorityRound { /* fields omitted */ }

Engine using AuthorityRound proof-of-authority BFT consensus.

Implementations

impl AuthorityRound[src]

pub fn new(
    our_params: AuthorityRoundParams,
    mashina: Machine
) -> Result<Arc<Self>, Error>
[src]

Create a new instance of AuthorityRound engine.

Trait Implementations

impl Engine for AuthorityRound[src]

fn seal_fields(&self, header: &Header) -> usize[src]

Three fields - consensus step and the corresponding proposer signature, and a list of empty step messages (which should be empty if no steps are skipped)

fn extra_info(&self, header: &Header) -> BTreeMap<String, String>[src]

Additional engine-specific information for the user/developer concerning header.

fn generate_seal(&self, block: &ExecutedBlock, parent: &Header) -> Seal[src]

Attempt to seal the block internally.

This operation is synchronous and may (quite reasonably) not be available, in which case Seal::None will be returned.

fn on_close_block(
    &self,
    block: &mut ExecutedBlock,
    parent: &Header
) -> Result<(), Error>
[src]

Apply the block reward on finalisation of the block.

fn verify_block_basic(&self, header: &Header) -> Result<(), Error>[src]

Check the number of seal fields.

fn verify_block_family(
    &self,
    header: &Header,
    parent: &Header
) -> Result<(), Error>
[src]

Do the step and gas limit validation.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,