Refactors in anticipation of blinded values

This commit is contained in:
Luke Dashjr 2016-02-15 15:19:28 -08:00 committed by Gregory Sanders
parent 3e00c9084c
commit 3ad6bbe651
27 changed files with 208 additions and 85 deletions

View file

@ -194,8 +194,10 @@ void TxToUniv(const CTransaction& tx, const uint256& hashBlock, UniValue& entry)
UniValue out(UniValue::VOBJ);
UniValue outValue(UniValue::VNUM, FormatMoney(txout.nValue));
out.pushKV("value", outValue);
if (txout.nValue.IsAmount()) {
UniValue outValue(UniValue::VNUM, FormatMoney(txout.nValue.GetAmount()));
out.pushKV("value", outValue);
}
out.pushKV("n", (int64_t)i);
UniValue o(UniValue::VOBJ);