Expand description
The miner. The miner code for the EPMB pallet.
It is broadly consisted of two main types:
crate::unsigned::miner::BaseMiner
, which is more generic, needs parameterization viacrate::unsigned::miner::MinerConfig
, and can be used by an external implementation.crate::unsigned::miner::OffchainWorkerMiner
, which is more opinionated, and is used by this pallet via theoffchain_worker
hook to also mine solutions during thePhase::Unsigned
.
Structs§
- Base
Miner - A base miner that is only capable of mining a new solution and checking it against the state of this pallet for feasibility, and trimming its length/weight.
- MaxWinners
Final - Helper type that computes the maximum total winners across all pages.
- Mine
Input - Aggregator for inputs to
BaseMiner
. - Offchain
Worker Miner - A miner that is suited to work inside offchain worker environment.
Enums§
- Miner
Error - The errors related to the
BaseMiner
. - Offchain
Miner Error - The errors related to the
OffchainWorkerMiner
. - Snapshot
Type - The type of the snapshot.
Traits§
- Miner
Config - Configurations for the miner.
Type Aliases§
- Full
Supports OfMiner - The full version of
PageSupportsOfMiner
. - Page
Supports OfMiner - Parameterized
BoundedSupports
for the miner.