// check if a process equivocated (sent two or more messages with the same type in the same round but with different values)
check if a process equivocated (sent two or more messages with the same type in the same round but with different values)
// check if a process equivocated ( sent two or more messages with the same type in the same round but with different values )
func (acc *Accountability) checkForEquivocation(processID string, round uint64, vs *common.VoteSet) {
	if len(vs.SentPrevoteMessages) > 1 {
		acc.faultySet.AddFaultiness(processID, round, faultinessMultiplePrevotes)
	}
	if len(vs.SentPrecommitMessages) > 1 {
		acc.faultySet.AddFaultiness(processID, round, faultinessMultiplePrecommits)
	}
}
func ( acc * Accountability ) checkForEquivocation ( processID string , round uint64 , vs * common . VoteSet ) { if len ( vs . SentPrevoteMessages ) > 1 { acc . faultySet . AddFaultiness ( processID , round , faultinessMultiplePrevotes ) } if len ( vs . SentPrecommitMessages ) > 1 { acc . faultySet . AddFaultiness ( processID , round , faultinessMultiplePrecommits ) } }
check if a process equivocated (sent two or more messages with the same type in the same round but with different values)
check if a process equivocated ( sent two or more messages with the same type in the same round but with different values )
// check for duplicates prevotes // check for duplicates precommits