You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// now, starting epoch - fromEpoch + 1. find period corres to it. find out how long that period lasts and add that many epochs. then keep adding 2880 epochs till period end passes the endEpoch
if(toEpoch < startingPeriod_deadline){// alternative way to check the same : `startingPeriod == endingPeriod`
1654
1653
if(_isPeriodProven(dataSetId, startingPeriod)){
1655
1654
provenEpochCount = (toEpoch - fromEpoch);
1656
1655
lastProvenEpoch = toEpoch;
@@ -1662,7 +1661,7 @@ contract FilecoinWarmStorageService is
1662
1661
1663
1662
// now loop through the proving periods between endingPeriod and startingPeriod.
1664
1663
for(uint256 period = startingPeriod +1; period <= endingPeriod -1; period++){
1665
-
if(provenPeriods[dataSetId][period]){ // here to check if period is proven, we can simply access the mapping since a period in between cannot be the current period
0 commit comments