getrawtransaction: scriptpubkey type is 'fee'

This commit is contained in:
Gregory Sanders 2017-02-28 15:42:39 -08:00
parent 8c15763b7f
commit f86b32e80d
3 changed files with 9 additions and 5 deletions

View file

@ -129,10 +129,7 @@ void TxToJSON(const CTransaction& tx, const uint256 hashBlock, UniValue& entry)
const CTxOut& txout = tx.vout[i];
UniValue out(UniValue::VOBJ);
if (txout.nValue.IsAmount())
if (txout.IsFee())
out.push_back(Pair("fee_value", ValueFromAmount(txout.nValue.GetAmount())));
else
out.push_back(Pair("value", ValueFromAmount(txout.nValue.GetAmount())));
out.push_back(Pair("value", ValueFromAmount(txout.nValue.GetAmount())));
else {
int exp;
int mantissa;