|
@ -2400,7 +2400,8 @@ bool CWallet::SelectCoins(const CAmount& nTargetValue, set<pair<const CWalletTx* |
|
|
nValueRet += out.tx->vout[out.i].nValue; |
|
|
nValueRet += out.tx->vout[out.i].nValue; |
|
|
interest = komodo_interest(chainActive.Tip()->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 |
|
|
#ifdef KOMODO_ENABLE_INTEREST |
|
|
nValueRet += interest; |
|
|
if ( txheight >= 60000 ) |
|
|
|
|
|
nValueRet += interest; |
|
|
#endif |
|
|
#endif |
|
|
fprintf(stderr,"interest %llu from %llu lock.%u tip.%u\n",(long long)interest,(long long)out.tx->vout[out.i].nValue,out.tx->nLockTime,chainActive.Tip()->nTime); |
|
|
fprintf(stderr,"interest %llu from %llu lock.%u tip.%u\n",(long long)interest,(long long)out.tx->vout[out.i].nValue,out.tx->nLockTime,chainActive.Tip()->nTime); |
|
|
setCoinsRet.insert(make_pair(out.tx, out.i)); |
|
|
setCoinsRet.insert(make_pair(out.tx, out.i)); |
|
|