Trait tp_consensus_pow::TimestampApi[][src]

pub trait TimestampApi<Block: BlockT, Moment: Decode>: Core<Block> {
    fn timestamp(
        &self,
        __runtime_api_at_param__: &BlockId<Block>
    ) -> Result<Moment, Self::Error> { ... }
fn timestamp_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext
    ) -> Result<Moment, Self::Error> { ... } }
Expand description

API necessary for timestamp-based difficulty adjustment algorithms.

Provided methods

Return the timestamp in the current block.

Return the timestamp in the current block.

Trait Implementations

The identifier of the runtime api.

The version of the runtime api.

Implementors