Bloodworms are midge larvae, so I don't think they're related to them; I'm really not sure. In the pictures of glassworms I found, the worms seemed more transparent and tiny. I bet, either way, once you get your fish, they'll become a tasty snack. Have you tried taking one out and picking it out of its casing to check if it's definitely a worm, or maybe an insect?