aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/command_parser_executor.cpp
diff options
context:
space:
mode:
authorDion Ahmetaj <Dion Ahmetaj>2016-10-10 17:19:36 -0400
committerDion Ahmetaj <Dion Ahmetaj>2016-10-10 17:19:36 -0400
commitdd6c44327be7d90574466bc37561b9d156466972 (patch)
tree03e4d18d3ac6b30c442b093155d441d354d96adc /src/daemon/command_parser_executor.cpp
parentattempted to remove whitespace spam (diff)
downloadmonero-dd6c44327be7d90574466bc37561b9d156466972.tar.xz
changed params from start/end index to height/count
Diffstat (limited to 'src/daemon/command_parser_executor.cpp')
-rw-r--r--src/daemon/command_parser_executor.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/daemon/command_parser_executor.cpp b/src/daemon/command_parser_executor.cpp
index 0d810bc32..5d7ed6cc0 100644
--- a/src/daemon/command_parser_executor.cpp
+++ b/src/daemon/command_parser_executor.cpp
@@ -456,23 +456,23 @@ bool t_command_parser_executor::print_coinbase_tx_sum(const std::vector<std::str
{
if(!args.size())
{
- std::cout << "need block index parameter" << std::endl;
+ std::cout << "need block height parameter" << std::endl;
return false;
}
- uint64_t start_index = 0;
- uint64_t end_index = 0;
- if(!epee::string_tools::get_xtype_from_string(start_index, args[0]))
+ uint64_t height = 0;
+ uint64_t count = 0;
+ if(!epee::string_tools::get_xtype_from_string(height, args[0]))
{
- std::cout << "wrong starter block index parameter" << std::endl;
+ std::cout << "wrong starter block height parameter" << std::endl;
return false;
}
- if(args.size() >1 && !epee::string_tools::get_xtype_from_string(end_index, args[1]))
+ if(args.size() >1 && !epee::string_tools::get_xtype_from_string(count, args[1]))
{
- std::cout << "wrong end block index parameter" << std::endl;
+ std::cout << "wrong count parameter" << std::endl;
return false;
}
- return m_executor.print_coinbase_tx_sum(start_index, end_index);
+ return m_executor.print_coinbase_tx_sum(height, count);
}
} // namespace daemonize