mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 20:42:59 +01:00
cd490905be
ce07638
doc: Add comment to use ValueFromAmount/AmountFromValue for JSON, not utilmoneystr (Wladimir J. van der Laan)ec05c50
rpc: Use ValueFromAmount instead of FormatMoney in TxToUniv (Wladimir J. van der Laan)46347ad
rpc: Move ValueFromAmount to core_write (Wladimir J. van der Laan)dac3782
doc: Correct AmountFromValue/ValueFromAmount names (Wladimir J. van der Laan) Pull request description: With this, the amounts returned in `decoderawtransaction` will be padded to 8 digits like anywhere else in the API. This is accomplished by using `ValueFromAmount` in `TxToUniv`, instead of `FormatMoney` which it currently (mistakingly) uses. The `FormatMoney` function is only for debugging/logging use! To avoid dependency issues, `ValueFromAmount` is moved to `core_write.cpp`, where it also fits better. I don't move `AmountFromValue` to `core_read.cpp` at the same time, as this would have more impact due to the RPCError dependency there. (n.b.: large number of changed files is solely due to the util_tests JSONs needing update) Tree-SHA512: 10fc2d27d33a77dbcb57aa7eccd4f53110c05d38eb7df6d40f10f14c08fad4274472e93af75aa59fe68ad0720fdf0930f0108124abef518e0dd162b3d2b2b292
26 lines
816 B
JSON
26 lines
816 B
JSON
{
|
|
"txid": "f42b38ac12e3fafc96ba1a9ba70cbfe326744aef75df5fb9db5d6e2855ca415f",
|
|
"version": 1,
|
|
"size": 54,
|
|
"locktime": 0,
|
|
"vin": [
|
|
],
|
|
"vout": [
|
|
{
|
|
"value": 0.00000000,
|
|
"valueSat": 0,
|
|
"n": 0,
|
|
"scriptPubKey": {
|
|
"asm": "02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397 OP_CHECKSIG",
|
|
"hex": "2102a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397ac",
|
|
"reqSigs": 1,
|
|
"type": "pubkey",
|
|
"addresses": [
|
|
"XqV6rHmzCyFUKF2jSVg8ZkZ7oRhGLVxifK"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"hex": "0100000000010000000000000000232102a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397ac00000000"
|
|
}
|