core: make the sync chunk block count overridable

This commit is contained in:
moneromooo-monero
2016-09-24 17:00:19 +01:00
parent 53e18cafdf
commit 5e3e362c85
5 changed files with 23 additions and 2 deletions

View File

@@ -30,6 +30,7 @@
#include "command_line.h"
#include "string_tools.h"
#include "cryptonote_config.h"
namespace command_line
{
@@ -92,4 +93,9 @@ namespace command_line
, "Show time-stats when processing blocks/txs and disk synchronization."
, 0
};
const command_line::arg_descriptor<size_t> arg_block_sync_size = {
"block-sync-size"
, "How many blocks to sync at once during chain synchronization."
, BLOCKS_SYNCHRONIZING_DEFAULT_COUNT
};
}