Acceleration in a high-energy flare