stickies-v
cfbc8a623b
refactor: rpc: hide and rename ParseNonRFCJSONValue()
...
As per https://github.com/bitcoin/bitcoin/pull/26506#pullrequestreview-1211984059 ,
this function is no longer necessary and we can use UniValue::read() directly.
To avoid code duplication, we keep the function to throw on invalid input data
but rename it to Parse() and remove it from the header.
2023-03-23 18:18:46 +00:00
stickies-v
545ff924ab
refactor: use string_view for RPC named argument values
...
Minimize copying RPC named argument values when calling .substr() by
using std::string_view instead of std::string.
2023-01-18 17:08:58 +00:00
stickies-v
7727603e44
refactor: reduce unnecessary complexity in ParseNonRFCJSONValue
...
Since https://github.com/jgarzik/univalue/pull/31 , UniValue::read() can now
parse raw literals directly, so there is no more need to wrap them into an
array first.
2023-01-18 17:01:21 +00:00
DrahtBot
eb7daf4d60
Update copyright headers to 2018
2018-07-27 07:15:02 -04:00
practicalswift
8fd6af89a0
Fix missing or inconsistent include guards
2018-03-22 16:23:04 +01:00
Wladimir J. van der Laan
481f289765
rpc: Named argument support for bitcoin-cli
...
Usage e.g.:
$ src/bitcoin-cli -testnet -named echo arg0="dfdf"
[
"dfdf"
]
Argument conversion also works, for arguments thus flagged in the table in
`src/rpc/client.cpp`.
$ src/bitcoin-cli -testnet -named echojson arg0="[1,2,3]"
[
[
1,
2,
3
]
]
Unknown parameter (detected server-side):
$ src/bitcoin-cli -testnet -named getinfo arg0="dfdf"
error code: -8
error message:
Unknown named parameter arg0
2017-01-10 12:04:54 +01:00
isle2983
27765b6403
Increment MIT Licence copyright header year on files modified in 2016
...
Edited via:
$ contrib/devtools/copyright_header.py update .
2016-12-31 11:01:21 -07:00
Daniel Cousens
a0eaff8a1d
move rpc* to rpc/
2016-01-21 08:36:55 +11:00