dash/test/util/data
Wladimir J. van der Laan cd490905be
Merge #10999: Fix amounts formatting in decoderawtransaction
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
2019-08-12 09:07:03 -05:00
..
bitcoin-util-test.json Merge bitcoin#9956: Reorganise qa directory (#2912) 2019-05-19 23:20:34 +03:00
blanktxv1.hex Merge bitcoin#9956: Reorganise qa directory (#2912) 2019-05-19 23:20:34 +03:00
blanktxv1.json Backport 8824 (#2968) 2019-06-11 14:42:17 +03:00
blanktxv2.hex Merge bitcoin#9956: Reorganise qa directory (#2912) 2019-05-19 23:20:34 +03:00
blanktxv2.json Backport 8824 (#2968) 2019-06-11 14:42:17 +03:00
tt-delin1-out.hex Merge bitcoin#9956: Reorganise qa directory (#2912) 2019-05-19 23:20:34 +03:00
tt-delin1-out.json Merge #10999: Fix amounts formatting in decoderawtransaction 2019-08-12 09:07:03 -05:00
tt-delout1-out.hex Merge bitcoin#9956: Reorganise qa directory (#2912) 2019-05-19 23:20:34 +03:00
tt-delout1-out.json Merge #10999: Fix amounts formatting in decoderawtransaction 2019-08-12 09:07:03 -05:00
tt-locktime317000-out.hex Merge bitcoin#9956: Reorganise qa directory (#2912) 2019-05-19 23:20:34 +03:00
tt-locktime317000-out.json Merge #10999: Fix amounts formatting in decoderawtransaction 2019-08-12 09:07:03 -05:00
tx394b54bb.hex Merge bitcoin#9956: Reorganise qa directory (#2912) 2019-05-19 23:20:34 +03:00
txcreate1.hex Merge bitcoin#9956: Reorganise qa directory (#2912) 2019-05-19 23:20:34 +03:00
txcreate1.json Merge #10999: Fix amounts formatting in decoderawtransaction 2019-08-12 09:07:03 -05:00
txcreate2.hex Merge bitcoin#9956: Reorganise qa directory (#2912) 2019-05-19 23:20:34 +03:00
txcreate2.json Merge #10999: Fix amounts formatting in decoderawtransaction 2019-08-12 09:07:03 -05:00
txcreatedata1.hex Merge bitcoin#9956: Reorganise qa directory (#2912) 2019-05-19 23:20:34 +03:00
txcreatedata1.json Merge #10999: Fix amounts formatting in decoderawtransaction 2019-08-12 09:07:03 -05:00
txcreatedata2.hex Merge bitcoin#9956: Reorganise qa directory (#2912) 2019-05-19 23:20:34 +03:00
txcreatedata2.json Merge #10999: Fix amounts formatting in decoderawtransaction 2019-08-12 09:07:03 -05:00
txcreatedata_seq0.hex Merge bitcoin#9956: Reorganise qa directory (#2912) 2019-05-19 23:20:34 +03:00
txcreatedata_seq0.json Merge #10999: Fix amounts formatting in decoderawtransaction 2019-08-12 09:07:03 -05:00
txcreatedata_seq1.hex Merge bitcoin#9956: Reorganise qa directory (#2912) 2019-05-19 23:20:34 +03:00
txcreatedata_seq1.json Merge #10999: Fix amounts formatting in decoderawtransaction 2019-08-12 09:07:03 -05:00
txcreatemultisig1.hex Merge bitcoin#9956: Reorganise qa directory (#2912) 2019-05-19 23:20:34 +03:00
txcreatemultisig1.json Merge #10999: Fix amounts formatting in decoderawtransaction 2019-08-12 09:07:03 -05:00
txcreatemultisig2.hex Merge bitcoin#9956: Reorganise qa directory (#2912) 2019-05-19 23:20:34 +03:00
txcreatemultisig2.json Merge #10999: Fix amounts formatting in decoderawtransaction 2019-08-12 09:07:03 -05:00
txcreateoutpubkey1.hex Merge bitcoin#9956: Reorganise qa directory (#2912) 2019-05-19 23:20:34 +03:00
txcreateoutpubkey1.json Merge #10999: Fix amounts formatting in decoderawtransaction 2019-08-12 09:07:03 -05:00
txcreatescript1.hex Merge bitcoin#9956: Reorganise qa directory (#2912) 2019-05-19 23:20:34 +03:00
txcreatescript1.json Merge #10999: Fix amounts formatting in decoderawtransaction 2019-08-12 09:07:03 -05:00
txcreatescript2.hex Merge bitcoin#9956: Reorganise qa directory (#2912) 2019-05-19 23:20:34 +03:00
txcreatescript2.json Merge #10999: Fix amounts formatting in decoderawtransaction 2019-08-12 09:07:03 -05:00
txcreatesignv1.hex Merge bitcoin#9956: Reorganise qa directory (#2912) 2019-05-19 23:20:34 +03:00
txcreatesignv1.json Merge #10999: Fix amounts formatting in decoderawtransaction 2019-08-12 09:07:03 -05:00
txcreatesignv2.hex Merge bitcoin#9956: Reorganise qa directory (#2912) 2019-05-19 23:20:34 +03:00