Properly calculate totalCoin in LoadBlockIndex()