diff options
author | Zachary Michaels <mikezackles@gmail.com> | 2014-07-22 14:00:10 -0400 |
---|---|---|
committer | Zachary Michaels <mikezackles@gmail.com> | 2014-07-22 14:00:10 -0400 |
commit | 2796a7f015956e11aec847e39fc0e214714af534 (patch) | |
tree | 2c06b3fbe708fc5350e72abc187e8e21a98cbcda /src/rpc/core_rpc_server.h | |
parent | Add get_bulk_payments rpc call (diff) | |
download | monero-2796a7f015956e11aec847e39fc0e214714af534.tar.xz |
Add get_info command to daemon json rpc
Diffstat (limited to 'src/rpc/core_rpc_server.h')
-rw-r--r-- | src/rpc/core_rpc_server.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpc/core_rpc_server.h b/src/rpc/core_rpc_server.h index 399a0214f..1228c4aa9 100644 --- a/src/rpc/core_rpc_server.h +++ b/src/rpc/core_rpc_server.h @@ -52,6 +52,7 @@ namespace cryptonote MAP_JON_RPC_WE("getblockheaderbyhash", on_get_block_header_by_hash, COMMAND_RPC_GET_BLOCK_HEADER_BY_HASH) MAP_JON_RPC_WE("getblockheaderbyheight", on_get_block_header_by_height, COMMAND_RPC_GET_BLOCK_HEADER_BY_HEIGHT) MAP_JON_RPC_WE("get_connections", on_get_connections, COMMAND_RPC_GET_CONNECTIONS) + MAP_JON_RPC_WE("get_info", on_get_info_json, COMMAND_RPC_GET_INFO) END_JSON_RPC_MAP() END_URI_MAP2() @@ -76,6 +77,7 @@ namespace cryptonote bool on_get_block_header_by_hash(const COMMAND_RPC_GET_BLOCK_HEADER_BY_HASH::request& req, COMMAND_RPC_GET_BLOCK_HEADER_BY_HASH::response& res, epee::json_rpc::error& error_resp, connection_context& cntx); bool on_get_block_header_by_height(const COMMAND_RPC_GET_BLOCK_HEADER_BY_HEIGHT::request& req, COMMAND_RPC_GET_BLOCK_HEADER_BY_HEIGHT::response& res, epee::json_rpc::error& error_resp, connection_context& cntx); bool on_get_connections(const COMMAND_RPC_GET_CONNECTIONS::request& req, COMMAND_RPC_GET_CONNECTIONS::response& res, epee::json_rpc::error& error_resp, connection_context& cntx); + bool on_get_info_json(const COMMAND_RPC_GET_INFO::request& req, COMMAND_RPC_GET_INFO::response& res, epee::json_rpc::error& error_resp, connection_context& cntx); //----------------------- bool handle_command_line(const boost::program_options::variables_map& vm); bool check_core_busy(); |