Skip to content

calculateLastProofDate

calculateLastProofDate(nextChallengeEpoch, maxProvingPeriod, genesisTimestamp): Date | null

Defined in: packages/synapse-core/src/utils/epoch.ts:118

Calculate when the last proof should have been submitted based on current time

Parameter Type Description
nextChallengeEpoch number The next challenge epoch from the data set
maxProvingPeriod number The maximum proving period in epochs
genesisTimestamp number The genesis timestamp of the chain in seconds (Unix timestamp)

Date | null

Date when the last proof should have been submitted, or null if no proof submitted yet