aboutsummaryrefslogtreecommitdiff
path: root/src/httpserver.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2016-09-29 16:45:19 +0200
committerAndrew Chow <[email protected]>2017-09-27 21:53:07 -0400
commit382625318d8734fd71a6c9620d3e88b5617da0c5 (patch)
tree69bc966e75c296275fcdd62062712a1fd82c13f1 /src/httpserver.cpp
parentMerge #10770: Drop upgrade-cancel callback registration for a generic "cancel... (diff)
downloaddiscoin-382625318d8734fd71a6c9620d3e88b5617da0c5.tar.xz
discoin-382625318d8734fd71a6c9620d3e88b5617da0c5.zip
rpc: Handle `getinfo` locally in bitcoin-cli w/ `-getinfo`
This adds the infrastructure `BaseRequestHandler` class that takes care of converting bitcoin-cli arguments into a JSON-RPC request object, and converting the reply into a JSON object that can be shown as result. This is subsequently used to handle the `-getinfo` option, which sends a JSON-RPC batch request to the RPC server with `["getnetworkinfo", "getblockchaininfo", "getwalletinfo"]`, and after reply combines the result into what looks like a `getinfo` result. There have been some requests for a client-side `getinfo` and this is my PoC of how to do it. If this is considered a good idea some of the logic could be moved up to rpcclient.cpp and used in the GUI console as well. Extra-Author: Andrew Chow <[email protected]>
Diffstat (limited to 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions