Skip to content

Commit 1994966

Browse files
author
Jayash Satolia
committed
Fix challenge success
1 parent cce361c commit 1994966

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

code/go/0chain.net/blobbercore/challenge/protocol.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,12 @@ func (cr *ChallengeEntity) LoadValidationTickets(ctx context.Context) error {
303303
}
304304
updateMapAndSlice(validatorID, i, &validationTicket)
305305

306-
numSuccess++
306+
if validationTicket.Result {
307+
numSuccess++
308+
} else {
309+
numFailed++
310+
}
311+
307312
}(url, validator.ID, i)
308313
}
309314

0 commit comments

Comments
 (0)