Bitcoin hits record high of $6,317