Skip to content

Commit

Permalink
Drop grace period
Browse files Browse the repository at this point in the history
  • Loading branch information
fasmat committed Aug 23, 2023
1 parent bfd15ba commit a0861e4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions activation/nipost.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,8 @@ func (nb *NIPostBuilder) BuildNIPost(ctx context.Context, challenge *types.NIPos
poetRoundStart := nb.layerClock.LayerToTime((publishEpoch - 1).FirstLayer()).Add(nb.poetCfg.PhaseShift)
poetRoundEnd := nb.layerClock.LayerToTime(publishEpoch.FirstLayer()).Add(nb.poetCfg.PhaseShift).Add(-nb.poetCfg.CycleGap)

// we want to publish before the publish epoch ends or we won't receive rewards (due to ATX grading)
// GracePeriod is a safety margin to make sure we don't miss the deadline
publishEpochEnd := nb.layerClock.LayerToTime((publishEpoch + 1).FirstLayer()).Add(-nb.poetCfg.GracePeriod)
// we want to publish before the publish epoch ends or we won't receive rewards
publishEpochEnd := nb.layerClock.LayerToTime((publishEpoch + 1).FirstLayer())

logger.With().Info("building nipost",
log.Time("poet round start", poetRoundStart),
Expand Down

0 comments on commit a0861e4

Please sign in to comment.