aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-01-17 00:45:28 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-01-17 10:14:48 +0000
commitba6d2975bcffd6c773b083d684dd011e8fcd7876 (patch)
tree71397c442eeaf0e88a313e52be44e450296c2e82
parentMerge pull request #3091 (diff)
downloadmonero-ba6d2975bcffd6c773b083d684dd011e8fcd7876.tar.xz
cryptonote_core: add --disable-dns-checkpoints flag
-rw-r--r--src/cryptonote_core/cryptonote_core.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp
index adbc727b0..9534b5508 100644
--- a/src/cryptonote_core/cryptonote_core.cpp
+++ b/src/cryptonote_core/cryptonote_core.cpp
@@ -83,6 +83,10 @@ namespace cryptonote
"offline"
, "Do not listen for peers, nor connect to any"
};
+ const command_line::arg_descriptor<bool> arg_disable_dns_checkpoints = {
+ "disable-dns-checkpoints"
+ , "Do not retrieve checkpoints from DNS"
+ };
static const command_line::arg_descriptor<bool> arg_test_drop_download = {
"test-drop-download"
@@ -236,6 +240,7 @@ namespace cryptonote
command_line::add_arg(desc, arg_fluffy_blocks);
command_line::add_arg(desc, arg_test_dbg_lock_sleep);
command_line::add_arg(desc, arg_offline);
+ command_line::add_arg(desc, arg_disable_dns_checkpoints);
miner::init_options(desc);
BlockchainDB::init_options(desc);
@@ -270,6 +275,7 @@ namespace cryptonote
test_drop_download_height(command_line::get_arg(vm, arg_test_drop_download_height));
m_fluffy_blocks_enabled = m_testnet || get_arg(vm, arg_fluffy_blocks);
m_offline = get_arg(vm, arg_offline);
+ m_disable_dns_checkpoints = get_arg(vm, arg_disable_dns_checkpoints);
if (command_line::get_arg(vm, arg_test_drop_download) == true)
test_drop_download();