Update main.cpp

Revert some changes I made in the last commit as it causes the client to freeze at block 47 when downloading the blocks.