# Functions

active-block = the begin of a consensus period, so, it is possible that active-block also is the begin of a epoch.
CalcBlocksEachEpoch return how many blocks per epoch.
calculate returns how many blocks per year.
calculate the Epoch number by blockNumber.
calculate the Consensus number by blockNumber.
The ProgramVersion: Major.Minor.Patch eg.
end-voting-block = the end block of a consensus period - electionDistance, end-voting-block must be a Consensus Election block.
ConsensusSize returns how many blocks per consensus round.
EpochSize returns how many consensus rounds per epoch.
EpochsPerYear returns how many epochs per year.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
IsBeginOfConsensus returns true if current block is the first block of a Consensus Cycle.
IsBeginOfEpoch returns true if current block is the first block of a Epoch.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
eg.