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
@@ -1530,7 +1529,7 @@ contract FilecoinWarmStorageService is
1530
1529
// now handle the last period separately
1531
1530
if (_isPeriodProven(dataSetId, endingPeriod, currentPeriod)) {
1532
1531
// then the epochs to add = `endingPeriod_starting` to `toEpoch`. But since `endingPeriod_starting` is simply the ending of its previous period + 1, so epochs : (`deadline + 1` -> `to`)
// Capture activation epoch BEFORE calling nextProvingPeriod
4277
-
4278
-
// uint256 _activationEpoch = block.number; // using this line is causing the activationEpoch variable to change every time we call vm.roll (some bug maybe) so better to do use the following line :
4279
-
uint256 _activationEpoch =1; // because in testing environment, starting block number is 1
4274
+
// Capture activation epoch BEFORE calling nextProvingPeriod
0 commit comments