remove extra condition (#9836)

This commit is contained in:
Yash Bhutwala
2021-10-29 12:29:33 -04:00
committed by GitHub
parent 9564ab1f7f
commit 105bb70b5e

View File

@@ -410,7 +410,7 @@ func (v *validator) UpdateLogAggregateStats(resp *ethpb.ValidatorPerformanceResp
summary.totalCorrectTarget++
}
if i < len(resp.CorrectlyVotedHead) && resp.CorrectlyVotedHead[i] {
included = true
// in altair, head == true also means source == true, hence no need to mark included true
correctHead++
summary.totalCorrectHead++
}