From c1d946bc0a5809ba6a66a8eecd25b0577ebb25d1 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Sun, 8 Feb 2015 17:10:44 +0300 Subject: [PATCH] use wallet db ds flag in rpc --- src/rpcwallet.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rpcwallet.cpp b/src/rpcwallet.cpp index af8e67a06..4a666564e 100644 --- a/src/rpcwallet.cpp +++ b/src/rpcwallet.cpp @@ -1116,7 +1116,8 @@ void ListTransactions(const CWalletTx& wtx, const string& strAccount, int nMinDe Object entry; entry.push_back(Pair("account", strSentAccount)); MaybePushAddress(entry, s.first); - entry.push_back(Pair("category", wtx.IsDenominated() ? "darksent" : "send")); + std::map::const_iterator it = wtx.mapValue.find("DS"); + entry.push_back(Pair("category", (it != wtx.mapValue.end() && it->second == "1") ? "darksent" : "send")); entry.push_back(Pair("amount", ValueFromAmount(-s.second))); entry.push_back(Pair("fee", ValueFromAmount(-nFee))); if (fLong)