From 02a4f831acf11fccf5852308146efc405cbfe319 Mon Sep 17 00:00:00 2001 From: instagibbs Date: Fri, 10 Jun 2016 16:55:56 -0400 Subject: [PATCH] More compact and pretty printing of blindingdata in ListTransactions --- src/wallet/rpcwallet.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 2a34dec930..109f5840e6 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -102,9 +102,10 @@ void WalletTxToJSON(const CWalletTx& wtx, UniValue& entry) rbfStatus = "yes"; } entry.push_back(Pair("bip125-replaceable", rbfStatus)); - - BOOST_FOREACH(const PAIRTYPE(string,string)& item, wtx.mapValue) - entry.push_back(Pair(item.first, item.second)); + std::string blindfactors; + for (unsigned int i=0; ivout.size(); i++) + blindfactors += wtx.GetBlindingFactor(i).GetHex() + ":"; + entry.push_back(Pair("blindingfactors", blindfactors)); } string AccountFromValue(const UniValue& value)