It sounds as though you have a haematoma
which is the medical term for a bruise
. In the shin bone the blood that forms the bruise or haematoma can persist for a long time in a little pocket. It will eventually go away but may take a number of weeks / months.