diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 4a6385b9d..9fac07166 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -2377,7 +2377,7 @@ bool CWallet::SelectCoins(const CAmount& nTargetValue, setvout[out.i].nValue; - interest = komodo_interest(out.tx->nHeight,out.tx->vout[out.i].nValue,out.tx->nLockTime,chainActive.Tip()->nTime); + interest = komodo_interest(chainActive.Tip()->nHeight,out.tx->vout[out.i].nValue,out.tx->nLockTime,chainActive.Tip()->nTime); #ifdef KOMODO_ENABLE_INTEREST nValueRet += interest; #endif