referrerpolicy=no-referrer-when-downgrade
frame_support::traits

Trait FindAuthor

Source
pub trait FindAuthor<Author> {
    // Required method
    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§

Source

fn find_author<'a, I>(digests: I) -> Option<Author>
where I: 'a + IntoIterator<Item = (ConsensusEngineId, &'a [u8])>,

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<A> FindAuthor<A> for ()

Source§

fn find_author<'a, I>(_: I) -> Option<A>
where I: 'a + IntoIterator<Item = (ConsensusEngineId, &'a [u8])>,

Implementors§

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

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

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