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

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

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

Return the weight of calling estimate_next_session_rotation

Implementations on Foreign Types

Implementors