mirror of
https://github.com/monero-project/monero.git
synced 2025-12-26 04:42:01 -08:00
rpc: add a command to get info about the current blockchain
About the tip of the main chain, and the last N blocks
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user