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
Parameters
Section titled “Parameters”| 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) |
Returns
Section titled “Returns”Date | null
Date when the last proof should have been submitted, or null if no proof submitted yet