Impurity on body, clothes or place of Salaah

Bleeding piles

Q: What is the ruling regarding bleeding piles and salaat. Recently I was on a trip to Cape Town. Before returning, I performed salaat at the musallah at the airport where I was the imam. When I returned home I noticed that there was some blood on my underwear, which was from piles. I am not sure at what point the piles were bleeding. Please advise what action/s need to be taken, if any, regarding my salaat and that of the jamaat.