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/cryptonote_core | |
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/cryptonote_core')
-rw-r--r-- | src/cryptonote_core/cryptonote_core.cpp | 6 | ||||
-rw-r--r-- | src/cryptonote_core/cryptonote_core.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp index b8bceb51c..ecbc1067c 100644 --- a/src/cryptonote_core/cryptonote_core.cpp +++ b/src/cryptonote_core/cryptonote_core.cpp @@ -616,12 +616,12 @@ namespace cryptonote return true; } //----------------------------------------------------------------------------------------------- - uint64_t core::get_coinbase_tx_sum(const uint64_t start_height, const uint64_t end_height) + uint64_t core::get_coinbase_tx_sum(const uint64_t start_offset, const uint64_t count) { std::list<block> blocks; uint64_t coinbase_tx_sum = 0; - uint64_t current_index = start_height; - this->get_blocks(start_height, end_height - start_height, blocks); + uint64_t current_index = start_offset; + this->get_blocks(start_offset, count, blocks); BOOST_FOREACH(auto& b, blocks) { coinbase_tx_sum += get_outs_money_amount(b.miner_tx); diff --git a/src/cryptonote_core/cryptonote_core.h b/src/cryptonote_core/cryptonote_core.h index 662e7f108..c152e6a3f 100644 --- a/src/cryptonote_core/cryptonote_core.h +++ b/src/cryptonote_core/cryptonote_core.h @@ -605,7 +605,7 @@ namespace cryptonote * * @return the number of blocks to sync in one go */ - uint64_t get_coinbase_tx_sum(const uint64_t start_height, const uint64_t end_height); + uint64_t get_coinbase_tx_sum(const uint64_t start_offset, const uint64_t count); private: |