Struct vapash_engine::Vapash[][src]

pub struct Vapash { /* fields omitted */ }

Engine using Vapash proof-of-work consensus algorithm, suitable for Vapory mainnet chains in the Olympic, Frontier and Homestead eras.

Implementations

impl Vapash[src]

pub fn new<T: Into<Option<OptimizeFor>>>(
    cache_dir: &Path,
    vapash_params: VapashParams,
    mashina: Machine,
    optimize_for: T
) -> Self
[src]

Create a new instance of Vapash engine

Trait Implementations

impl Engine for Vapash[src]

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

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

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

Apply the block reward on finalisation of the block. This assumes that all uncles are valid uncles (i.e. of at least one generation before the current).

Auto Trait Implementations

impl !RefUnwindSafe for Vapash

impl Send for Vapash

impl Sync for Vapash

impl Unpin for Vapash

impl !UnwindSafe for Vapash

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>,