The more massive of these , Sirius B , consumed its resources and became a red giant before shedding its outer layers and collapsing into its current state as a white dwarf around 120 million years ago .
Then it shed its outer layers and collapsed into its present state as a white dwarf , about 120 million years ago .