mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +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
|
|
@ -321,7 +321,6 @@ Value gettxoutsetinfo(const Array& params, bool fHelp)
|
|||
ret.push_back(Pair("txouts", (int64_t)stats.nTransactionOutputs));
|
||||
ret.push_back(Pair("bytes_serialized", (int64_t)stats.nSerializedSize));
|
||||
ret.push_back(Pair("hash_serialized", stats.hashSerialized.GetHex()));
|
||||
ret.push_back(Pair("total_amount", ValueFromAmount(stats.nTotalAmount)));
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
|
@ -394,7 +393,8 @@ Value gettxout(const Array& params, bool fHelp)
|
|||
ret.push_back(Pair("confirmations", 0));
|
||||
else
|
||||
ret.push_back(Pair("confirmations", pindex->nHeight - coins.nHeight + 1));
|
||||
ret.push_back(Pair("value", ValueFromAmount(coins.vout[n].nValue)));
|
||||
if (coins.vout[n].nValue.IsAmount())
|
||||
ret.push_back(Pair("value", ValueFromAmount(coins.vout[n].nValue.GetAmount())));
|
||||
Object o;
|
||||
ScriptPubKeyToJSON(coins.vout[n].scriptPubKey, o, true);
|
||||
ret.push_back(Pair("scriptPubKey", o));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue