aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/command_server.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-01-08 11:14:11 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-01-13 23:21:38 +0000
commit5b5017e26708c48cc1ba7bd3f1e0f0f70d6c6316 (patch)
tree6560c7f8c0177766d1ae0d276bd7de0742972211 /src/daemon/command_server.cpp
parentMerge pull request #1562 (diff)
downloadmonero-5b5017e26708c48cc1ba7bd3f1e0f0f70d6c6316.tar.xz
rpc: add a command to get info about the current blockchain
About the tip of the main chain, and the last N blocks
Diffstat (limited to 'src/daemon/command_server.cpp')
-rw-r--r--src/daemon/command_server.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/daemon/command_server.cpp b/src/daemon/command_server.cpp
index 88c49d111..086478a47 100644
--- a/src/daemon/command_server.cpp
+++ b/src/daemon/command_server.cpp
@@ -230,6 +230,11 @@ t_command_server::t_command_server(
, std::bind(&t_command_parser_executor::alt_chain_info, &m_parser, p::_1)
, "Print information about alternative chains"
);
+ m_command_lookup.set_handler(
+ "bc_dyn_stats"
+ , std::bind(&t_command_parser_executor::print_blockchain_dynamic_stats, &m_parser, p::_1)
+ , "Print information about current blockchain dynamic state"
+ );
}
bool t_command_server::process_command_str(const std::string& cmd)