One virtue of a war that dragged on for so many years was that it gave the patriots a long gestation period in which to work out the rudiments of a federal government, financial mechanisms, diplomatic alliances, and other elements of a modern nation-state.