diff --git a/cmd/orb-server/startcmd/params.go b/cmd/orb-server/startcmd/params.go index b2c63522..42fe96c6 100644 --- a/cmd/orb-server/startcmd/params.go +++ b/cmd/orb-server/startcmd/params.go @@ -2309,7 +2309,7 @@ func getAnchorSyncParameters(cmd *cobra.Command) (syncPeriod, acceleratedSyncPer maxActivities, err = cmdutil.GetInt(cmd, anchorSyncMaxActivitiesFlagName, anchorSyncMaxActivitiesEnvKey, defaultAnchorSyncMaxActivities) if err != nil { - return 0, 0, 0, 0, fmt.Errorf("%s: %w", anchorSyncMinActivityAgeFlagName, err) + return 0, 0, 0, 0, fmt.Errorf("%s: %w", anchorSyncMaxActivitiesFlagName, err) } return syncPeriod, acceleratedSyncPeriod, minActivityAge, maxActivities, nil