pub struct AuthorityRound { /* private fields */ }
Expand description

Engine using AuthorityRound proof-of-authority BFT consensus.

Implementations

Create a new instance of AuthorityRound engine.

Trait Implementations

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)

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

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.

Apply operations on new epoch. Apply rewrite bytecode transitions if available.

Apply the block reward on finalisation of the block.

Check the number of seal fields.

Do the step and gas limit validation.

The name of this engine.

Get access to the underlying state machine.

Trigger next step of the consensus engine.

Maximum number of uncles a block is allowed to declare.

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

Returns whether the current node is a validator and actually may seal a block if AuRa engine is used. Read more

Returns the engine’s current sealing state.

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

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

Returns a list of transactions for a new block if we are the author. Read more

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

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

Register a component which signs consensus messages.

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

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 ancestry exists.

Overrides the block gas limit. Whenever this returns Some for a header, the next block’s gas limit must be exactly that value. used by AuRa engine. Read more

Optional maximum gas limit.

Allow mutating the header during seal generation. Currently only used by Clique.

Called in miner.chain_new_blocks if the engine wishes to update_sealing after a block was recently sealed. Read more

Phase 2 verification. Perform costly checks such as transaction signatures. Returns either a null Ok or a general error detailing the problem with import. The verification module can optionally avoid checking the seal (check_seal), if seal verification is disabled this method won’t be called. Read more

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.

Returns author should used when executing tx’s for this block.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Get the general parameters of the chain.

Get the EVM schedule for the given block number.

Builtin-contracts for the chain..

Attempt to get a handle to a built-in contract. Only returns references to activated built-ins. Read more

Some intrinsic operation parameters; by default they take their value from the spec()’s engine_params.

The nonce with which accounts begin at given block.

The network ID that transactions should be signed with.

Returns new contract address generation scheme at given block number.

Unordered verification doesn’t rely on the transaction execution order, i.e. it should only verify stuff that doesn’t assume any previous transactions has already been verified and executed. Read more

Perform basic/cheap transaction verification. Read more

Additional information.

Performs pre-validation of RLP decoded transaction before other processing

Calculates base fee for the block that should be mined next. This base fee is calculated based on the parent header (last block in blockchain / best block). Read more

The configured minimum gas limit. Used by AuRa Engine.

Returns whether transactions from non externally owned accounts (EOA) are allowed in the given block number (see EIP-3607). Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.