pub trait TargetBlockRate<Block: BlockT>: Core<Block> {
// Provided method
fn target_block_rate(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
) -> Result<u32, ApiError> { ... }
}Expand description
API for parachain target block rate.
This runtime API allows the parachain runtime to communicate the target block rate to the node side. The target block rate is always valid for the next relay chain slot.
The runtime can not enforce this target block rate. It only acts as a maximum, but not more. In the end it depends on the collator how many blocks will be produced. If there are no cores available or the collator is offline, no blocks at all will be produced.