From cbe3042f73131b9f7161492f074c050ef7c14074 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 15 Nov 2016 21:26:50 -0300 Subject: [PATCH] test --- src/wallet/rpcwallet.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index a6a8392a4..1f2cb706b 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -77,7 +77,8 @@ uint64_t komodo_interest(int32_t txheight,uint64_t nValue,uint32_t nLockTime,uin void WalletTxToJSON(const CWalletTx& wtx, Object& entry) { - int32_t i,n,txheight; uint32_t locktime; uint64_t interest = 0; int confirms = wtx.GetDepthInMainChain(); + //int32_t i,n,txheight; uint32_t locktime; uint64_t interest = 0; + int confirms = wtx.GetDepthInMainChain(); entry.push_back(Pair("confirmations", confirms)); if (wtx.IsCoinBase()) entry.push_back(Pair("generated", true)); @@ -89,10 +90,10 @@ void WalletTxToJSON(const CWalletTx& wtx, Object& entry) } uint256 hash = wtx.GetHash(); entry.push_back(Pair("txid", hash.GetHex())); - n = wtx.vout.size(); - for (i=0; inHeight,wtx.vout[i].nValue,wtx.nLockTime,mapBlockIndex[wtx.hashBlock]->nTime); - entry.push_back(Pair("interest", interest)); + //n = wtx.vout.size(); + //for (i=0; inHeight,wtx.vout[i].nValue,wtx.nLockTime,mapBlockIndex[wtx.hashBlock]->nTime); + //entry.push_back(Pair("interest", interest)); Array conflicts; BOOST_FOREACH(const uint256& conflict, wtx.GetConflicts())