mirror of
https://github.com/monero-project/monero.git
synced 2025-05-02 16:16:09 -04:00
core: make the sync chunk block count overridable
This commit is contained in:
parent
53e18cafdf
commit
5e3e362c85
5 changed files with 23 additions and 2 deletions
|
@ -650,9 +650,9 @@ namespace cryptonote
|
|||
size_t count = 0;
|
||||
auto it = context.m_needed_objects.begin();
|
||||
|
||||
size_t count_limit = BLOCKS_SYNCHRONIZING_DEFAULT_COUNT;
|
||||
const size_t count_limit = m_core.get_block_sync_size();
|
||||
_note_c("net/req-calc" , "Setting count_limit: " << count_limit);
|
||||
while(it != context.m_needed_objects.end() && count < BLOCKS_SYNCHRONIZING_DEFAULT_COUNT)
|
||||
while(it != context.m_needed_objects.end() && count < count_limit)
|
||||
{
|
||||
if( !(check_having_blocks && m_core.have_block(*it)))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue