Rutherford B. Hayes, I think. “Highly contested election.” IIRC, Electoral commission dragged into March.
The current law governing the process of confirming the electoral results was written in response to that and passed in 1887.