More compact and pretty printing of blindingdata in ListTransactions

This commit is contained in:
instagibbs 2016-06-10 16:55:56 -04:00 committed by Gregory Sanders
parent cf158f0185
commit 02a4f831ac

View file

@ -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; i<wtx.tx->vout.size(); i++)
blindfactors += wtx.GetBlindingFactor(i).GetHex() + ":";
entry.push_back(Pair("blindingfactors", blindfactors));
}
string AccountFromValue(const UniValue& value)