I always thought dragons were reptilian and therefore cold blooded.

Yes, but being cold blooded doesn’t mean their blood is actually cold, it just means that they cannot internally regulate their temperature. For the majority of creatures that means they need external sources of warmth, dragons are unique in that they need external sources of “cool”.