pub trait FindAuthor<Author> {
    fn find_author<'a, I>(digests: I) -> Option<Author>
    where
        I: 'a + IntoIterator<Item = (ConsensusEngineId, &'a [u8])>
; }
Expand description

A trait for finding the author of a block header based on the PreRuntime digests contained within it.

Required methods

Find the author of a block based on the pre-runtime digests.

Implementations on Foreign Types

Implementors

impl<T: Config> FindAuthor<u32> for Pallet<T>

impl<T: Config, Inner: FindAuthor<u32>> FindAuthor<<T as Config>::ValidatorId> for FindAccountFromAuthorIndex<T, Inner>