package
0.0.32
Repository: https://github.com/make-os/kit.git
Documentation: pkg.go.dev

# Functions

GetEpochAt returns the epoch number where target height falls in.
GetFirstInEpoch returns the block height that is the first in a given epoch.
GetFirstInEpochOfHeight returns the block height that is the first block in the epoch where the target height falls in.
GetLastHeightInEpochOfHeight returns the height of the last block in the epoch where the target height falls in.
GetLastInParentOfEpochOfHeight returns the block height that is the last block in the parent epoch of the epoch where the given block height falls in.
GetSeedInEpochOfHeight returns the block height that contains the seed for the epoch where the target height falls in.
IsBeforeEndOfEpochOfHeight checks whether the block at the given height is the block next to the last block in the end stage of an epoch.
IsEndOfEpochOfHeight checks whether the block at height is the last block of the epoch.
IsFirstInEpoch checks whether a given block height is the first block in an epoch.
IsThirdToLastInEpochOfHeight checks whether the block at given height is the third to the last block its epoch.