diff options
| author | Jeff Garzik <[email protected]> | 2014-06-26 22:12:36 -0400 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2014-06-26 22:18:30 -0400 |
| commit | e35b37b1b8252c3d3f66001ba1efccd263307add (patch) | |
| tree | 13591f78c28fc6fd247680c65d7fbbf943724228 /src/test/script_P2SH_tests.cpp | |
| parent | Merge pull request #3715 (diff) | |
| download | discoin-e35b37b1b8252c3d3f66001ba1efccd263307add.tar.xz discoin-e35b37b1b8252c3d3f66001ba1efccd263307add.zip | |
RPC client: Simplify command line string-to-JSON-value conversion code
By default, all command line parameters are converted into JSON string
values. There is no need to manually specify the incoming type.
A binary decision "parse as string or JSON?" is all that's necessary.
Convert to a simple class, initialized at runtime startup, which offers
a quick lookup to answer "parse as JSON?" conversion question.
Future parameter conversions need only to indicate the method name
and zero-based index of the parameter needing JSON parsing.
Diffstat (limited to 'src/test/script_P2SH_tests.cpp')
0 files changed, 0 insertions, 0 deletions