// AddMessage adds a given message to the right voteSet
AddMessage adds a given message to the right voteSet
// AddMessage adds a given message to the right voteSet
func (hvs *HeightVoteSet) AddMessage(mes *Message) {
	vs, loaded := hvs.VoteSetMap[mes.Round]
	if vs == nil || !loaded {
		vs = NewVoteSet()
		hvs.VoteSetMap[mes.Round] = vs
	}
	vs.addSentMessage(mes)
}
func ( hvs * HeightVoteSet ) AddMessage ( mes * Message ) { vs , loaded := hvs . VoteSetMap [ mes . Round ] if vs == nil || ! loaded { vs = NewVoteSet ( ) hvs . VoteSetMap [ mes . Round ] = vs } vs . addSentMessage ( mes ) }
AddMessage adds a given message to the right voteSet
AddMessage adds a given message to the right voteSet