rpc: Use ValueFromAmount instead of FormatMoney in TxToUniv

With this, the amounts returned in `decoderawtransaction` will be
padded to 8 digits like anywhwere else in the API.
This commit is contained in:
Wladimir J. van der Laan
2017-08-07 14:41:29 +02:00
parent 46347add43
commit ec05c508c6
22 changed files with 25 additions and 26 deletions

View File

@@ -18,7 +18,7 @@
],
"vout": [
{
"value": 0.18,
"value": 0.18000000,
"n": 0,
"scriptPubKey": {
"asm": "OP_DUP OP_HASH160 1fc11f39be1729bf973a7ab6a615ca4729d64574 OP_EQUALVERIFY OP_CHECKSIG",
@@ -31,7 +31,7 @@
}
},
{
"value": 4.00,
"value": 4.00000000,
"n": 1,
"scriptPubKey": {
"asm": "OP_RETURN 54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e",