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§
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