From ec05c508c681b01ca990f091f346f5171538ce8d Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Mon, 7 Aug 2017 14:41:29 +0200 Subject: 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. --- test/util/data/txcreatedata1.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/util/data/txcreatedata1.json') diff --git a/test/util/data/txcreatedata1.json b/test/util/data/txcreatedata1.json index e65a1859eb..e66a6bb9a5 100644 --- a/test/util/data/txcreatedata1.json +++ b/test/util/data/txcreatedata1.json @@ -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", -- cgit v1.2.3