From 55fa0479a0db599d81500e57e355124f1fb9c05e Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sat, 17 Dec 2016 11:25:15 +0000 Subject: rpc: new function and RPC to get alternative chain info --- src/daemon/command_server.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/daemon/command_server.cpp') diff --git a/src/daemon/command_server.cpp b/src/daemon/command_server.cpp index 729b19cbf..88c49d111 100644 --- a/src/daemon/command_server.cpp +++ b/src/daemon/command_server.cpp @@ -225,6 +225,11 @@ t_command_server::t_command_server( , std::bind(&t_command_parser_executor::print_coinbase_tx_sum, &m_parser, p::_1) , "Print sum of coinbase transactions (start height, block count)" ); + m_command_lookup.set_handler( + "alt_chain_info" + , std::bind(&t_command_parser_executor::alt_chain_info, &m_parser, p::_1) + , "Print information about alternative chains" + ); } bool t_command_server::process_command_str(const std::string& cmd) -- cgit v1.2.3