Skip to content

Commit 791bd05

Browse files
author
Alok Nerurkar
committed
feat: eligibility for incentives during reserve-expanding pullsync
1 parent 0607dea commit 791bd05

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

pkg/storageincentives/agent.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -416,9 +416,7 @@ func (a *Agent) handleSample(ctx context.Context, round uint64) (bool, error) {
416416
a.metrics.NeighborhoodSelected.Inc()
417417
a.logger.Info("neighbourhood chosen", "round", round)
418418

419-
isSynced := a.reserveSyncedFunc(committedDepth)
420-
a.state.SetFullySynced(isSynced)
421-
if !isSynced {
419+
if !a.reserveSyncedFunc(committedDepth) {
422420
a.logger.Info("skipping round because reserve is not synced", "depth", committedDepth, "round", round)
423421
return false, nil
424422
}

0 commit comments

Comments
 (0)