Trait sp_consensus_pow::TimestampApi [−][src]
API necessary for timestamp-based difficulty adjustment algorithms.
Provided methods
fn timestamp(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Moment, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Moment, Self::Error>
Return the timestamp in the current block.
fn timestamp_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Moment, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Moment, Self::Error>
Return the timestamp in the current block.