Function first_two_epochs

Source
pub async fn first_two_epochs(
    height: u64,
    instance_state: &NodeState,
) -> Result<bool>
Expand description

Checks whether the given height belongs to the first or second epoch. or the Genesis epoch (EpochNumber::new(0))

Rewards are not distributed for these epochs because the stake table is built from the contract only when add_epoch_root() is called by HotShot, which happens starting from the third epoch.