mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Refactors in anticipation of blinded values
This commit is contained in:
parent
20339a9b92
commit
b05e98bc9c
14 changed files with 203 additions and 77 deletions
|
|
@ -123,8 +123,11 @@ 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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue