mirror of
https://github.com/monero-project/monero.git
synced 2025-11-21 05:02:28 -05:00
Merge pull request #3973
50af357 alt_chain_info can now give more info about a particular alt chain (moneromooo-monero)
This commit is contained in:
commit
d518dae4bf
8 changed files with 56 additions and 18 deletions
|
|
@ -614,13 +614,13 @@ bool t_command_parser_executor::print_coinbase_tx_sum(const std::vector<std::str
|
|||
|
||||
bool t_command_parser_executor::alt_chain_info(const std::vector<std::string>& args)
|
||||
{
|
||||
if(args.size())
|
||||
if(args.size() > 1)
|
||||
{
|
||||
std::cout << "No parameters allowed" << std::endl;
|
||||
std::cout << "usage: alt_chain_info [block_hash]" << std::endl;
|
||||
return false;
|
||||
}
|
||||
|
||||
return m_executor.alt_chain_info();
|
||||
return m_executor.alt_chain_info(args.size() == 1 ? args[0] : "");
|
||||
}
|
||||
|
||||
bool t_command_parser_executor::print_blockchain_dynamic_stats(const std::vector<std::string>& args)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue