mirror of
https://github.com/monero-project/monero.git
synced 2025-07-23 21:00:43 -04:00
changed params from start/end index to height/count
This commit is contained in:
parent
e95d3f359b
commit
dd6c44327b
10 changed files with 27 additions and 27 deletions
|
@ -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);
|
||||
|
|
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue