diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-07-06 11:43:56 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-07-27 13:55:46 +0200 |
commit | 614601be8f30852a04214b652db45c20d920c70f (patch) | |
tree | b38b3729b4db65068f7b8ac316d2575c3b4817fd /src/merkleblock.cpp | |
parent | d43297c5ba951df535df704e321a883f97475c35 (diff) |
rpc: Accept strings in AmountFromValue
Accept strings containing decimal values, in addition to bare values.
Useful from JSON-RPC implementations where it's not possible to have
direct control over the text of numbers (e.g. where numbers are always
doubles), and it's still desired to send an exact value.
This would allow users to post JSON content with numbers encoded like
`{"value": "0.00000001"}` instead of `{"value": 0.00000001}` which some
php/python encoders wrap into 1e-8, or worse.
Diffstat (limited to 'src/merkleblock.cpp')
0 files changed, 0 insertions, 0 deletions