HomePhabricator

rpc: Accept strings in AmountFromValue
614601be8f30Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

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.

Details

Provenance
Wladimir J. van der Laan <laanwj@gmail.com>Authored on Jul 6 2015, 09:43
deadalnixPushed on May 14 2017, 22:04
Parents
rABCd43297c5ba95: Merge pull request #6468
Branches
Unknown
Tags
Unknown

Event Timeline

Wladimir J. van der Laan <laanwj@gmail.com> committed rABC614601be8f30: rpc: Accept strings in AmountFromValue (authored by Wladimir J. van der Laan <laanwj@gmail.com>).Jul 27 2015, 11:55