Skip to content

Commit

Permalink
logs
Browse files Browse the repository at this point in the history
  • Loading branch information
manav2401 committed Oct 5, 2023
1 parent c28f4e0 commit 91c05c5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions checkpoint/client/rest/query_milestone.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func milestoneLatestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc {
// Fetch latest milestone
result, height, err := cliCtx.QueryWithData(fmt.Sprintf("custom/%s/%s", types.QuerierRoute, types.QueryLatestMilestone), nil)

RestLogger.Info("***** fetching latest milestone", "height", height)
RestLogger.Info("***** fetching latest milestone", "height", height, "hf", helper.GetAalborgHardForkHeight())

// Return status code 503 (Service Unavailable) if HF hasn't been activated
if height < helper.GetAalborgHardForkHeight() {
Expand Down Expand Up @@ -70,7 +70,7 @@ func milestoneCountHandlerFn(cliCtx context.CLIContext) http.HandlerFunc {

countBytes, height, err := cliCtx.QueryWithData(fmt.Sprintf("custom/%s/%s", types.QuerierRoute, types.QueryCount), nil)

RestLogger.Info("***** fetching milestone count", "height", height)
RestLogger.Info("***** fetching milestone count", "height", height, "hf", helper.GetAalborgHardForkHeight())

// Return status code 503 (Service Unavailable) if HF hasn't been activated
if height < helper.GetAalborgHardForkHeight() {
Expand Down Expand Up @@ -134,7 +134,7 @@ func milestoneByNumberHandlerFn(cliCtx context.CLIContext) http.HandlerFunc {
// query milestone
res, height, err := cliCtx.QueryWithData(fmt.Sprintf("custom/%s/%s", types.QuerierRoute, types.QueryMilestoneByNumber), queryParams)

RestLogger.Info("***** fetching milestone by number", "height", height)
RestLogger.Info("***** fetching milestone by number", "height", height, "hf", helper.GetAalborgHardForkHeight())

// Return status code 503 (Service Unavailable) if HF hasn't been activated
if height < helper.GetAalborgHardForkHeight() {
Expand Down Expand Up @@ -165,7 +165,7 @@ func latestNoAckMilestoneHandlerFn(cliCtx context.CLIContext) http.HandlerFunc {

result, height, err := cliCtx.QueryWithData(fmt.Sprintf("custom/%s/%s", types.QuerierRoute, types.QueryLatestNoAckMilestone), nil)

RestLogger.Info("***** fetching latest no-ack milestone", "height", height)
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() {
Expand Down Expand Up @@ -225,7 +225,7 @@ func noAckMilestoneByIDHandlerFn(cliCtx context.CLIContext) http.HandlerFunc {

result, height, err := cliCtx.QueryWithData(fmt.Sprintf("custom/%s/%s", types.QuerierRoute, types.QueryNoAckMilestoneByID), queryID)

RestLogger.Info("***** fetching no-ack milestone by ID", "height", height)
RestLogger.Info("***** fetching no-ack milestone by ID", "height", height, "hf", helper.GetAalborgHardForkHeight())

// Return status code 503 (Service Unavailable) if HF hasn't been activated
if height < helper.GetAalborgHardForkHeight() {
Expand Down

0 comments on commit 91c05c5

Please sign in to comment.