the riotous horde had surrounded the temple , blocking its exits in retaliation for the debasing of the currency which philip had orchestrated in an attempt to raise funds for his dwindling treasury .