In page 134, proposition 6.6 Hartshorne mentions that type 2 is a point $x \in X $ x $ \mathbb A^1 $ of codimension one, whose image in $X$ is the generic point of $X$. I realized that this point $x$ corresponds to a prime ideal $\mathcal p$ of height one in Spec $A[t]$ where Spec $A$ is open in $X$ and Spec $A[t]$ is $\pi^{-1} $(Spec$A$). But then I am not able to understand the fact that $A[t]_ \mathcal p $ is a localisation of $K[t]$ at some maximal ideal, where $K$ is the functon field of $X$. Can anyone please explain this?
Also in page 137 while defining $f^*$, is it true that $v_P$ restricted to $K(Y)^*$ and $v_Q$ have the same valuation ring $\mathcal O_Q$?