[][src]Trait frame_support::traits::EstimateNextSessionRotation

pub trait EstimateNextSessionRotation<BlockNumber> {
    fn estimate_next_session_rotation(now: BlockNumber) -> Option<BlockNumber>;
fn weight(now: BlockNumber) -> Weight; }

Something that can estimate at which block the next session rotation will happen. This should be the same logical unit that dictates ShouldEndSession to the session module. No Assumptions are made about the scheduling of the sessions.

Required methods

fn estimate_next_session_rotation(now: BlockNumber) -> Option<BlockNumber>

Return the block number at which the next session rotation is estimated to happen.

None should be returned if the estimation fails to come to an answer

fn weight(now: BlockNumber) -> Weight

Return the weight of calling estimate_next_session_rotation

Loading content...

Implementations on Foreign Types

impl<BlockNumber: Bounded> EstimateNextSessionRotation<BlockNumber> for ()[src]

Loading content...

Implementors

Loading content...