func voteRespMsgType(msgt pb.MessageType) pb.MessageType {
	switch msgt {
	case pb.MsgVote:
		return pb.MsgVoteResp
	case pb.MsgPreVote:
		return pb.MsgPreVoteResp
	default:
		panic(fmt.Sprintf("not a vote message: %s", msgt))
	}
}
func voteRespMsgType(msgt pb.MessageType) pb.MessageType {
	switch msgt {
	case pb.MsgVote:
		return pb.MsgVoteResp
	case pb.MsgPreVote:
		return pb.MsgPreVoteResp
	default:
		panic(fmt.Sprintf("not a vote message: %s", msgt))
	}
}
func voteRespMsgType ( msgt pb . MessageType ) pb . MessageType { switch msgt { case pb . MsgVote : return pb . MsgVoteResp case pb . MsgPreVote : return pb . MsgPreVoteResp default : panic ( fmt . Sprintf ( " " , msgt ) ) } }
// voteResponseType maps vote and prevote message types to their corresponding responses.
voteResponseType maps vote and prevote message types to their corresponding responses .