From 8e1eaf983d28182652cf861fcbf29c3394ea86fc Mon Sep 17 00:00:00 2001 From: Evan Duffield Date: Thu, 19 Feb 2015 11:22:00 -0700 Subject: [PATCH] Enable darksend balance only when LiteMode is disabled --- src/rpcmisc.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rpcmisc.cpp b/src/rpcmisc.cpp index bc164491c0..9a0d90a09f 100644 --- a/src/rpcmisc.cpp +++ b/src/rpcmisc.cpp @@ -69,7 +69,8 @@ Value getinfo(const Array& params, bool fHelp) if (pwalletMain) { obj.push_back(Pair("walletversion", pwalletMain->GetVersion())); obj.push_back(Pair("balance", ValueFromAmount(pwalletMain->GetBalance()))); - obj.push_back(Pair("darksend_balance", ValueFromAmount(pwalletMain->GetAnonymizedBalance()))); + if(!fLiteMode) + obj.push_back(Pair("darksend_balance", ValueFromAmount(pwalletMain->GetAnonymizedBalance()))); } #endif obj.push_back(Pair("blocks", (int)chainActive.Height()));