mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
getrawtransaction: scriptpubkey type is 'fee'
This commit is contained in:
parent
8c15763b7f
commit
f86b32e80d
3 changed files with 9 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue