// String representation of a voteset
String representation of a voteset
// String representation of a voteset
func (vs *VoteSet) String() string {
	var sb strings.Builder
	sb.WriteString(messagesToString("[Received prevote messages]", vs.ReceivedPrevoteMessages))
	sb.WriteString("\n")
	sb.WriteString(messagesToString("[Received precommit messages]", vs.ReceivedPrecommitMessages))
	sb.WriteString("\n")
	sb.WriteString(messagesToString("[Sent prevote messages]", vs.SentPrevoteMessages))
	sb.WriteString("\n")
	sb.WriteString(messagesToString("[Sent precommit messages]", vs.SentPrecommitMessages))
	return sb.String()
}
func ( vs * VoteSet ) String ( ) string { var sb strings . Builder sb . WriteString ( messagesToString ( " " , vs . ReceivedPrevoteMessages ) ) sb . WriteString ( " \n " ) sb . WriteString ( messagesToString ( " " , vs . ReceivedPrecommitMessages ) ) sb . WriteString ( " \n " ) sb . WriteString ( messagesToString ( " " , vs . SentPrevoteMessages ) ) sb . WriteString ( " \n " ) sb . WriteString ( messagesToString ( " " , vs . SentPrecommitMessages ) ) return sb . String ( ) }
String representation of a voteset
String representation of a voteset