I would agree that the influx of immigrants to the North was probably the main reason for the prosperity. Also, one must remember that "the War" transpired primarily in the South. Northern factories, railroads, and cities were largely uneffected.