]> Git Repo - VerusCoin.git/commit - src/utilstrencodings.h
rpc: Accept scientific notation for monetary amounts in JSON
authorWladimir J. van der Laan <[email protected]>
Mon, 6 Jul 2015 08:49:24 +0000 (10:49 +0200)
committerJack Grigg <[email protected]>
Fri, 10 Feb 2017 02:18:58 +0000 (02:18 +0000)
commitfed500e2dd571406b9420f7a26a5db6dee801806
treec7aeefa4197d851728fea15dc765dc03361f792e
parente76a3849c6cdd390d2577e9e21436466fd800dda
rpc: Accept scientific notation for monetary amounts in JSON

Add a function `ParseFixedPoint` that parses numbers according
to the JSON number specification and returns a 64-bit integer.

Then this in `AmountFromValue`, rather than `ParseMoney`.

Also add lots of tests (thanks to @jonasschnelli for some of them).

Fixes issue #6297.
src/rpcserver.cpp
src/test/rpc_tests.cpp
src/test/util_tests.cpp
src/utilstrencodings.cpp
src/utilstrencodings.h
This page took 0.024619 seconds and 4 git commands to generate.