// pickSendVote picks a vote and sends it to the peer. It will return true if
// there is a vote to send and false otherwise.
pickSendVote picks a vote and sends it to the peer. It will return true if
there is a vote to send and false otherwise.
// pickSendVote picks a vote and sends it to the peer . It will return true if // there is a vote to send and false otherwise .
func (r *Reactor) pickSendVote(ps *PeerState, votes types.VoteSetReader) bool {
	if vote, ok := ps.PickVoteToSend(votes); ok {
		r.Logger.Debug("sending vote message", "ps", ps, "vote", vote)
		r.voteCh.Out <- p2p.Envelope{
			To: ps.peerID,
			Message: &tmcons.Vote{
				Vote: vote.ToProto(),
			},
		}
		ps.SetHasVote(vote)
		return true
	}
	return false
}
func ( r * Reactor ) pickSendVote ( ps * PeerState , votes types . VoteSetReader ) bool { if vote , ok := ps . PickVoteToSend ( votes ) ; ok { r . Logger . Debug ( " " , " " , ps , " " , vote ) r . voteCh . Out <- p2p . Envelope { To : ps . peerID , Message : & tmcons . Vote { Vote : vote . ToProto ( ) , } , } ps . SetHasVote ( vote ) return true } return false }
pickSendVote picks a vote and sends it to the peer.
pickSendVote picks a vote and sends it to the peer .