aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core
diff options
context:
space:
mode:
Diffstat (limited to 'src/cryptonote_core')
-rw-r--r--src/cryptonote_core/cryptonote_core.cpp6
-rw-r--r--src/cryptonote_core/cryptonote_core.h2
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: