Skip to content

calculateLastProofDate

function calculateLastProofDate(
nextChallengeEpoch,
maxProvingPeriod,
network):
| null
| Date;

Defined in: packages/synapse-sdk/src/utils/epoch.ts:81

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
networkFilecoinNetworkTypeThe Filecoin network

| null | Date

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