Skip to content

Commit

Permalink
use height instead of ctx.Height
Browse files Browse the repository at this point in the history
  • Loading branch information
manav2401 committed Oct 5, 2023
1 parent 37af7bd commit 2d90c0d
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 @@ -154,7 +154,7 @@ func latestNoAckMilestoneHandlerFn(cliCtx context.CLIContext) http.HandlerFunc {
result, height, err := cliCtx.QueryWithData(fmt.Sprintf("custom/%s/%s", types.QuerierRoute, types.QueryLatestNoAckMilestone), nil)

// Return status code 503 (Service Unavailable) if HF hasn't been activated
if cliCtx.Height < helper.GetAalborgHardForkHeight() {
if height < helper.GetAalborgHardForkHeight() {
hmRest.WriteErrorResponse(w, http.StatusServiceUnavailable, "Aalborg hardfork not activated yet")

return
Expand Down

0 comments on commit 2d90c0d

Please sign in to comment.