Skip to content

Commit

Permalink
Merge branch 'sprint-july-4' into case-3-and-case-4
Browse files Browse the repository at this point in the history
  • Loading branch information
devyetii authored Aug 12, 2023
2 parents 2fc8c37 + d14239b commit 58d406f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions code/go/0chain.net/validatorcore/storage/challenge_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,11 @@ func challengeHandler(ctx context.Context, r *http.Request) (interface{}, error)

err = challengeRequest.VerifyChallenge(challengeObj, allocationObj)
if err != nil {
statsMutex.Lock()
updateStats(false)
statsMutex.Unlock()
return InvalidValidationTicket(challengeObj, err)
}

statsMutex.Lock()
updateStats(false)
statsMutex.Unlock()

return ValidValidationTicket(challengeObj, challengeRequest.ChallengeID, challengeHash)
}
Expand Down

0 comments on commit 58d406f

Please sign in to comment.