Update wallet.cpp

Calculate nHeight and use it instead of nFees for the second parameter of GetProofOfStakeReward()