Crate tp_consensus_pow[][src]

Primitives for Tetcore Proof-of-Work (PoW) consensus.

Constants

POW_ENGINE_ID

The ConsensusEngineId of PoW.

Traits

DifficultyApi

API for those chains that put their difficulty adjustment algorithm directly onto runtime. Note that while putting difficulty adjustment algorithm to runtime is safe, putting the PoW algorithm on runtime is not.

TimestampApi

API necessary for timestamp-based difficulty adjustment algorithms.

TotalDifficulty

Define methods that total difficulty should implement.

Type Definitions

Seal

Type of seal.