From 7098e8b929adf9d53f7787855882729d720afd30 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 15 Nov 2016 19:26:24 -0300 Subject: [PATCH] test --- src/wallet/rpcwallet.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 8777c3b7e..4854a4807 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -74,7 +74,7 @@ void EnsureWalletIsUnlocked() void WalletTxToJSON(const CWalletTx& wtx, Object& entry) { - 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)); @@ -86,6 +86,11 @@ 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; i