Was open voting such a bad thing? Not the violence and intimidation part, but the idea that citizens ought to stand up in public and take responsibility before their neighbours for their electoral choice? Does that not have some merit? As an MP said in the 1874 debate on the bill that ended open voting,: "Under vote by ballot an elector may take your money and vote as he likes without detection."
Anyway, the 1878 federal election was the first fought under the new election rules introduced by the Liberal government in 1874: one voting day everywhere, bars closed on election day, new anti-corruption controls -- and the secret ballot.
Macdonald running on an effective platform rooted in the National Policy slogan, crushed Alexander Mackenzie's government, and was sworn in with a big majority. He'd be in for the rest of his life.