Skip to content

Commit

Permalink
zero group to process at the beginning
Browse files Browse the repository at this point in the history
  • Loading branch information
pahor167 committed Sep 20, 2024
1 parent aef2fce commit a222b53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/protocol/contracts-0.8/common/EpochManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ contract EpochManager is
epochs[currentEpochNumber].firstBlock = block.number;
epochs[currentEpochNumber].startTimestamp = block.timestamp;

epochProcessing.toProcessGroups = 0;

for (uint i = 0; i < elected.length; i++) {
address group = getValidators().getValidatorsGroup(elected[i]);
if (!processedGroups[group].processed) {
Expand Down Expand Up @@ -226,7 +228,6 @@ contract EpochManager is
greaters[i]
);

epochProcessing.toProcessGroups = 0;
delete processedGroups[groups[i]];
}
getCeloUnreleasedTreasure().release(
Expand Down

0 comments on commit a222b53

Please sign in to comment.