Trait BlockProductionLogApi

Source
pub trait BlockProductionLogApi<Block: BlockT, Member>: Core<Block>
where Member: Decode,
{ // Provided method fn get_author( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, slot: Slot, ) -> Result<Option<Member>, ApiError> { ... } }
Expand description

Runtime API exposing data required for the BlockAuthorInherentProvider to operate. Type parameters:

  • Member: type representing a committee member eligible to be a block author. This type should correspond to what is configured as the block author type used by the pallet.

Provided Methods§

Source

fn get_author( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, slot: Slot, ) -> Result<Option<Member>, ApiError>

Function returning the current block’s author.

Its implementation must either use data exposed by the consensus mechanism used by the Partner Chain, independently calculate it, or obtain it from another source.

Parameters:

  • slot: slot number of the block currently being produced

Trait Implementations§

Source§

impl<Block: BlockT, Member> RuntimeApiInfo for dyn BlockProductionLogApi<Block, Member>

Source§

const ID: [u8; 8]

The identifier of the runtime api.
Source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§