From 7c29073fa4dcca96b1de52343815a98597ec911f Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 15 Nov 2016 10:54:01 -0300 Subject: [PATCH] test --- src/wallet/wallet.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 0ce980304..1a9e477d8 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -2393,7 +2393,6 @@ bool CWallet::SelectCoins(const CAmount& nTargetValue, setHasSelected()) { extern char ASSETCHAINS_SYMBOL[16]; - uint64_t interest; BOOST_FOREACH(const COutput& out, vCoins) { if(!out.fSpendable) @@ -2402,8 +2401,9 @@ bool CWallet::SelectCoins(const CAmount& nTargetValue, setnHeight+1 >= 60000 ) { + uint64_t interest; interest = komodo_interest(chainActive.Tip()->nHeight+1,out.tx->vout[out.i].nValue,out.tx->nLockTime,chainActive.Tip()->nTime); - if ( interest != 0 || value >= COIN*100 ) + if ( interest != 0 || out.tx->vout[out.i].nValue >= COIN*100 ) { printf("nValueRet %.8f += interest %.8f ht.%d lock.%u tip.%u\n",(double)out.tx->vout[out.i].nValue/COIN,(double)interest/COIN,chainActive.Tip()->nHeight+1,out.tx->nLockTime,chainActive.Tip()->nTime); fprintf(stderr,"nValueRet %.8f += interest %.8f ht.%d lock.%u tip.%u\n",(double)nValueRet/COIN,(double)interest/COIN,chainActive.Tip()->nHeight+1,out.tx->nLockTime,chainActive.Tip()->nTime);