Remove blocks_per_sync limits
The code used to cap at 5000 blocks per sync. It also treated 0 as 1. Remove these checks; if specified as 0 do no periodic syncs at all. Then the user is responsible for syncing in some external process.
This commit is contained in:
@@ -3378,7 +3378,7 @@ bool Blockchain::cleanup_handle_incoming_blocks(bool force_sync)
|
||||
store_blockchain();
|
||||
m_sync_counter = 0;
|
||||
}
|
||||
else if (m_sync_counter >= m_db_blocks_per_sync)
|
||||
else if (m_db_blocks_per_sync && m_sync_counter >= m_db_blocks_per_sync)
|
||||
{
|
||||
if(m_db_sync_mode == db_async)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user