bitcoin-cli
would always parse those arguments as JSON which makes for some cumbersome argument passing when using those RPCs. Notably, hash_or_height
in getblockstats
and gettxoutsetinfo
do this, and results in a more cumbersome command of bitcoin-cli getblockstats '"<hash>"'
. Otherwise, using a normal invocation of bitcoin-cli getblockstats <hash>
results in error: Error parsing JSON
. This PR marks those particular options as also being a string so that when bitcoin-cli
fails to parse the argument as JSON, it will assume that the argument is a string and pass it straight through.