referrerpolicy=no-referrer-when-downgrade

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.

Provided Methods§

source

fn timestamp( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, ) -> Result<Moment, ApiError>

Return the timestamp in the current block.

Trait Implementations§

source§

impl<Block: BlockT, Moment: Decode> RuntimeApiInfo for dyn TimestampApi<Block, Moment>

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§