Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
manav2401 committed Oct 5, 2023
1 parent 91c05c5 commit 8977b31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checkpoint/client/rest/query_milestone.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func latestNoAckMilestoneHandlerFn(cliCtx context.CLIContext) http.HandlerFunc {
RestLogger.Info("***** fetching latest no-ack milestone", "height", height, "hf", helper.GetAalborgHardForkHeight())

// Return status code 503 (Service Unavailable) if HF hasn't been activated
if cliCtx.Height < helper.GetAalborgHardForkHeight() {
if height < helper.GetAalborgHardForkHeight() {
RestLogger.Info("***** Aalborg hardfork not activated yet", "url", r.URL)

hmRest.WriteErrorResponse(w, http.StatusServiceUnavailable, "Aalborg hardfork not activated yet")
Expand Down

0 comments on commit 8977b31

Please sign in to comment.