diff --git a/src/komodo.h b/src/komodo.h index 9ebbf2c21..6382510c3 100644 --- a/src/komodo.h +++ b/src/komodo.h @@ -273,7 +273,7 @@ int64_t komodo_interest(uint64_t nValue,uint32_t nLockTime,uint32_t tiptime) { int32_t minutes,days; uint64_t interest = 0; if ( tiptime == 0 ) - tiptime = activeChain.Tip()->nTime; + tiptime = chainActive.Tip()->nTime; if ( nLockTime >= LOCKTIME_THRESHOLD && tiptime != 0 && nLockTime < tiptime && nValue >= COIN ) { minutes = (tiptime - nLockTime) / 60; diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 3c58aca4c..75634c48c 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -2375,7 +2375,7 @@ bool CWallet::SelectCoins(const CAmount& nTargetValue, setvout[out.i].nValue; - nValueRet += komodo_interest(out.tx->vout[out.i].nValue,out.tx.nLockTime,activeChain.Tip()->nTime); + nValueRet += komodo_interest(out.tx->vout[out.i].nValue,out.tx.nLockTime,chainActive.Tip()->nTime); setCoinsRet.insert(make_pair(out.tx, out.i)); } return (nValueRet >= nTargetValue);