Consensus support for blinded amounts

This commit is contained in:
Luke Dashjr 2015-05-20 10:24:16 +00:00 committed by Matt Corallo
parent b05e98bc9c
commit bf009e4ba1
16 changed files with 177 additions and 98 deletions

View file

@ -395,6 +395,7 @@ Value gettxout(const Array& params, bool fHelp)
ret.push_back(Pair("confirmations", pindex->nHeight - coins.nHeight + 1));
if (coins.vout[n].nValue.IsAmount())
ret.push_back(Pair("value", ValueFromAmount(coins.vout[n].nValue.GetAmount())));
// TODO: Non-Amount values
Object o;
ScriptPubKeyToJSON(coins.vout[n].scriptPubKey, o, true);
ret.push_back(Pair("scriptPubKey", o));