referrerpolicy=no-referrer-when-downgrade

Function submit_unsigned

Source
pub fn submit_unsigned<T: Config>(
    paged_solution: Box<PagedRawSolution<T::MinerConfig>>,
)
Expand description

Submit an unsigned solution.

This works very much like an inherent, as only the validators are permitted to submit anything. By default validators will compute this call in their offchain_worker hook and try and submit it back.

This is different from signed page submission mainly in that the solution page is verified on the fly.

The paged_solution may contain at most Config::MinerPages pages. They are interpreted as msp -> lsp, as per crate::Pallet::msp_range_for.

For example, if Pages = 4, and MinerPages = 2, our full snapshot range would be [0, 1, 2, 3], with 3 being msp. But, in this case, then the paged_raw_solution.pages is expected to correspond to [snapshot(2), snapshot(3)].

§Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::submit_unsigned.