Expand description
A manual sealing engine: the engine listens for rpc calls to seal blocks and create forks. This is suitable for a testing environment.
Re-exports§
pub use self::consensus::ConsensusDataProvider;
pub use self::rpc::CreatedBlock;
pub use self::rpc::EngineCommand;
Modules§
- consensus
- Extensions for manual seal to produce blocks valid for any runtime.
- rpc
- RPC interface for the
ManualSeal
Engine.
Structs§
- Delayed
Finalize Params - Params required to start the delayed finalization task.
- Finalize
Block Params - params for block finalization.
- Instant
Seal Params - Params required to start the instant sealing authorship task.
- Manual
Seal Params - Params required to start the manual sealing authorship task.
- Seal
Block Params - params for sealing a new block
Enums§
- Error
- errors encountered by background block authorship task
Constants§
- MANUAL_
SEAL_ ENGINE_ ID - The
ConsensusEngineId
of Manual Seal. - MAX_
PROPOSAL_ DURATION - max duration for creating a proposal in secs
Functions§
- finalize_
block - finalizes a block in the backend with the given params.
- import_
queue - Instantiate the import queue for the manual seal consensus engine.
- run_
delayed_ finalize - Creates a future for delayed finalization of manual sealed blocks.
- run_
instant_ seal - runs the background authorship task for the instant seal engine. instant-seal creates a new block for every transaction imported into the transaction pool.
- run_
instant_ seal_ and_ finalize - Runs the background authorship task for the instant seal engine. instant-seal creates a new block for every transaction imported into the transaction pool.
- run_
manual_ seal - Creates the background authorship task for the manually seal engine.
- seal_
block - seals a new block with the given params