aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-09-29 22:15:21 +0200
committerRiccardo Spagni <ric@spagni.net>2016-09-29 22:15:21 +0200
commitaf831bed5cbfe48c04d6d5d427b7f88556e149dc (patch)
tree7454017ca432b5e878ec2e5da2600905b254e232 /src/common
parentMerge pull request #1136 (diff)
parentcore: make the sync chunk block count overridable (diff)
downloadmonero-af831bed5cbfe48c04d6d5d427b7f88556e149dc.tar.xz
Merge pull request #1129
5e3e362 core: make the sync chunk block count overridable (moneromooo-monero)
Diffstat (limited to 'src/common')
-rw-r--r--src/common/command_line.cpp6
-rw-r--r--src/common/command_line.h1
2 files changed, 7 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
+ };
}
diff --git a/src/common/command_line.h b/src/common/command_line.h
index 731b8b0bb..0ea749168 100644
--- a/src/common/command_line.h
+++ b/src/common/command_line.h
@@ -216,4 +216,5 @@ namespace command_line
extern const arg_descriptor<uint64_t> arg_prep_blocks_threads;
extern const arg_descriptor<uint64_t> arg_db_auto_remove_logs;
extern const arg_descriptor<uint64_t> arg_show_time_stats;
+ extern const arg_descriptor<size_t> arg_block_sync_size;
}