]> Git Repo - VerusCoin.git/commitdiff
test
authorjl777 <[email protected]>
Wed, 25 Jan 2017 09:01:17 +0000 (11:01 +0200)
committerjl777 <[email protected]>
Wed, 25 Jan 2017 09:01:17 +0000 (11:01 +0200)
src/wallet/rpcwallet.cpp

index 3ae1744de6477c9fe3fb33444b76a878ef13770c..1aca3c21e0b64fb038dec968eefc3301cba1fa84 100644 (file)
@@ -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));
This page took 0.030001 seconds and 4 git commands to generate.