aboutsummaryrefslogtreecommitdiff
path: root/src/common/command_line.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-09-24 17:00:19 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-09-24 17:00:19 +0100
commit5e3e362c854dd59c5399dbf6fe1a5675826f6732 (patch)
treed81eef8351868e035e9bb864c8d744b55a0fba9d /src/common/command_line.cpp
parentMerge pull request #1102 (diff)
downloadmonero-5e3e362c854dd59c5399dbf6fe1a5675826f6732.tar.xz
core: make the sync chunk block count overridable
Diffstat (limited to '')
-rw-r--r--src/common/command_line.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/command_line.cpp b/src/common/command_line.cpp
index fc096abe5..b3f488447 100644
--- a/src/common/command_line.cpp
+++ b/src/common/command_line.cpp
@@ -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
+ };
}