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