Struct ethcore::engines::NullEngine [] [src]

pub struct NullEngine<M> { /* fields omitted */ }

An engine which does not provide any consensus mechanism and does not seal blocks.

Methods

impl<M> NullEngine<M>
[src]

Returns new instance of NullEngine with default VM Factory

Trait Implementations

impl<M: Default> Default for NullEngine<M>
[src]

Returns the "default value" for a type. Read more

impl<M: WithBalances + WithRewards> Engine<M> for NullEngine<M> where
    M::ExtendedHeader: TotalScoredHeader,
    <M::ExtendedHeader as TotalScoredHeader>::Value: Ord
[src]

The name of this engine.

Important traits for &'a mut R

Get access to the underlying state machine.

Block transformation functions, after the transactions.

Maximum number of uncles a block is allowed to declare.

Verify a locally-generated seal of a header. Read more

Create a factory for building snapshot chunks and restoring from them. Returning None indicates that this engine doesn't support snapshot creation. Read more

Check whether the given new block is the best block, after finalization check.

The number of additional header fields required for this engine.

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

The number of generations back that uncles can be.

Block transformation functions, before the transactions. epoch_begin set to true if this block kicks off an epoch. Read more

None means that it requires external input (e.g. PoW) to seal a block. Some(true) means the engine is currently prime for seal generation (i.e. node is the current validator). Some(false) means that the node might seal internally but is not qualified now. Read more

Attempt to seal the block internally. Read more

Phase 1 quick block verification. Only does checks that are cheap. Returns either a null Ok or a general error detailing the problem with import.

Phase 2 verification. Perform costly checks such as transaction signatures. Returns either a null Ok or a general error detailing the problem with import.

Phase 3 verification. Check block information against parent. Returns either a null Ok or a general error detailing the problem with import.

Phase 4 verification. Verify block header against potentially external data. Should only be called when register_client has been called previously. Read more

Genesis epoch data.

Whether an epoch change is signalled at the given header but will require finality. If a change can be enacted immediately then return No from this function but Yes from is_epoch_end. Read more

Whether a block is the end of an epoch. Read more

Create an epoch verifier from validation proof and a flag indicating whether finality is required. Read more

Populate a header's fields based on its parent's header. Usually implements the chain scoring rule based on weight. Read more

Handle any potential consensus messages; updating consensus state and potentially issuing a new one. Read more

Find out if the block is a proposal block and should not be inserted into the DB. Takes a header of a fully verified block. Read more

Register an account which signs consensus messages.

Sign using the EngineSigner, to be used for consensus tx signing.

Add Client which can be used for sealing, potentially querying the state and sending messages.

Trigger next step of the consensus engine.

Stops any services that the may hold the Engine and makes it safe to drop.

Whether this engine supports warp sync.

Return a new open block header timestamp based on the parent timestamp.

Check whether the parent timestamp is valid.

Important traits for Vec<u8>

Gather all ancestry actions. Called at the last stage when a block is committed. The Engine must guarantee that the ancestry exists. Read more

Auto Trait Implementations

impl<M> Send for NullEngine<M> where
    M: Send

impl<M> Sync for NullEngine<M> where
    M: Sync