Variolation might have been done by Washington, probably to worse results than your rose colored glasses are providing to this urban legend from 250 years ago. Troops died from Washington's experiment.
Vaccine wasn't developed until well after the war (1796). Here's the link from your be all end all, the CDC. Read a website for Christ's sake. https://www.cdc.gov/smallpox/history/history.html