Skip to content

Commit

Permalink
fix: DelegatorRewardSync scan height.
Browse files Browse the repository at this point in the history
  • Loading branch information
romever committed Aug 8, 2024
1 parent 1d31dee commit 9db4aaf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions job/task/validator_task.go
Original file line number Diff line number Diff line change
Expand Up @@ -609,8 +609,6 @@ func DelegatorRewardSync(ctx context.Context, svcCtx *svc.ServiceContext) {
}
}

rewardEpoch++

//update system property
if rewardEpochProperty != nil {
rewardEpochProperty.Value = strconv.FormatInt(rewardEpoch, 10)
Expand All @@ -623,6 +621,7 @@ func DelegatorRewardSync(ctx context.Context, svcCtx *svc.ServiceContext) {
}

logc.Infof(ctx, "delegation reward sync done, epoch:%d, current epoch:%d", rewardEpoch, currentEpoch)
rewardEpoch++
}
}

Expand Down

0 comments on commit 9db4aaf

Please sign in to comment.