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`
1567
1566
if(_isPeriodProven(dataSetId, startingPeriod)){
1568
1567
provenEpochCount = (toEpoch - fromEpoch);
1569
1568
lastProvenEpoch = toEpoch;
@@ -1575,7 +1574,7 @@ contract FilecoinWarmStorageService is
1575
1574
1576
1575
// now loop through the proving periods between endingPeriod and startingPeriod.
1577
1576
for(uint256 period = startingPeriod +1; period <= endingPeriod -1; period++){
1578
-
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