diff options
author | Dion Ahmetaj <Dion Ahmetaj> | 2016-10-10 17:19:36 -0400 |
---|---|---|
committer | Dion Ahmetaj <Dion Ahmetaj> | 2016-10-10 17:19:36 -0400 |
commit | dd6c44327be7d90574466bc37561b9d156466972 (patch) | |
tree | 03e4d18d3ac6b30c442b093155d441d354d96adc /src/daemon/rpc_command_executor.cpp | |
parent | attempted to remove whitespace spam (diff) | |
download | monero-dd6c44327be7d90574466bc37561b9d156466972.tar.xz |
changed params from start/end index to height/count
Diffstat (limited to 'src/daemon/rpc_command_executor.cpp')
-rw-r--r-- | src/daemon/rpc_command_executor.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/daemon/rpc_command_executor.cpp b/src/daemon/rpc_command_executor.cpp index 80d330e92..bf154597c 100644 --- a/src/daemon/rpc_command_executor.cpp +++ b/src/daemon/rpc_command_executor.cpp @@ -1270,14 +1270,14 @@ bool t_rpc_command_executor::output_histogram(uint64_t min_count, uint64_t max_c return true; } -bool t_rpc_command_executor::print_coinbase_tx_sum(uint64_t start_block_index, uint64_t end_block_index) +bool t_rpc_command_executor::print_coinbase_tx_sum(uint64_t height, uint64_t count) { cryptonote::COMMAND_RPC_GET_COINBASE_TX_SUM::request req; cryptonote::COMMAND_RPC_GET_COINBASE_TX_SUM::response res; epee::json_rpc::error error_resp; - req.start_height = start_block_index; - req.end_height = end_block_index; + req.height = height; + req.count = count; std::string fail_message = "Unsuccessful"; @@ -1297,8 +1297,8 @@ bool t_rpc_command_executor::print_coinbase_tx_sum(uint64_t start_block_index, u } } - tools::msg_writer() << "Sum of coinbase transactions between block indexes " - << start_block_index << " and " << end_block_index << " (inclusive) is " + tools::msg_writer() << "Sum of coinbase transactions between block heights [" + << height << ", " << (height + count) << ") is " << cryptonote::print_money(res.amount); return true; } |