Update wallet.py

fix wrong reference for inputHeight in change aggregation