Trait sp_consensus_pow::TimestampApi
source · pub trait TimestampApi<Block: BlockT, Moment: Decode>: Core<Block> {
// Provided method
fn timestamp(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
) -> Result<Moment, ApiError> { ... }
}
Expand description
API necessary for timestamp-based difficulty adjustment algorithms.