From: jl777 Date: Wed, 25 Jan 2017 09:01:17 +0000 (+0200) Subject: test X-Git-Url: https://repo.jachan.dev/VerusCoin.git/commitdiff_plain/23c2f1e36ef8b7ac194ed2121fe84c7aceb137ac test --- diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 3ae1744de..1aca3c21e 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -2641,8 +2641,10 @@ Value listunspent(const Array& params, bool fHelp) interest = komodo_interest(pindex->nHeight,nValue,out.tx->nLockTime,tipindex->nTime); entry.push_back(Pair("interest",ValueFromAmount(interest))); }*/ - if ( (interest= komodo_accrued_interest(&txheight,&locktime,out.tx->GetHash(),out.i,out.nHeight,nValue)) != 0 ) + uint32_t locktime; int32_t txheight; + if ( (interest= komodo_accrued_interest(&txheight,&locktime,out.tx->GetHash(),out.i,pindex->nHeight,nValue)) != 0 ) ret.push_back(Pair("interest", ValueFromAmount(interest))); + printf("locktime.%u txheight.%d pindexht.%d\n",locktime,txheight,pindex->nHeight); } entry.push_back(Pair("confirmations",out.nDepth)); entry.push_back(Pair("spendable", out.fSpendable));