mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
fixed gettxout rpc bug
This commit is contained in:
parent
d77ad7385a
commit
0f59eeaab4
1 changed files with 1 additions and 1 deletions
|
|
@ -959,7 +959,7 @@ UniValue gettxout(const JSONRPCRequest& request)
|
|||
if (coins.vout[n].nValue.IsExplicit()) {
|
||||
ret.push_back(Pair("value", ValueFromAmount(coins.vout[n].nValue.GetAmount())));
|
||||
} else {
|
||||
ret.push_back(Pair("valuecommitment", uint256(coins.vout[n].nValue.vchCommitment).GetHex()));
|
||||
ret.push_back(Pair("valuecommitment", HexStr(coins.vout[n].nValue.vchCommitment)));
|
||||
}
|
||||
UniValue o(UniValue::VOBJ);
|
||||
ScriptPubKeyToJSON(coins.vout[n].scriptPubKey, o, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue