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`
1533
1532
if(_isPeriodProven(dataSetId, startingPeriod)){
1534
1533
provenEpochCount = (toEpoch - fromEpoch);
1535
1534
lastProvenEpoch = toEpoch;
@@ -1541,7 +1540,7 @@ contract FilecoinWarmStorageService is
1541
1540
1542
1541
// now loop through the proving periods between endingPeriod and startingPeriod.
1543
1542
for(uint256 period = startingPeriod +1; period <= endingPeriod -1; period++){
1544
-
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