Play around with the dates as you like. Either move up the construction of he canal, or delay the war, or both. But how much things play out if the canal existed when war with Great Britain broke out?