Skip to content

calculateLastProofDate

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

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

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

ParameterTypeDescription
nextChallengeEpochnumberThe next challenge epoch from the data set
maxProvingPeriodnumberThe maximum proving period in epochs
genesisTimestampnumberThe 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