calculateLastProofDate
function calculateLastProofDate( nextChallengeEpoch, maxProvingPeriod, network): | Date | null;
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”| Date
| null
Date when the last proof should have been submitted, or null if no proof submitted yet