aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/cryptonote_core.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-07-26 10:18:44 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-08-07 14:31:06 +0100
commit38756d00ff432dd44971538c512465e19438f3ff (patch)
tree720d1ad7cf4385509bdb9647993e1264037f57b1 /src/cryptonote_core/cryptonote_core.cpp
parentc63e9633b556c5f3c5b1467bbae8ac376abeb4e9 (diff)
downloadmonzero-core-38756d00ff432dd44971538c512465e19438f3ff.tar.gz
monzero-core-38756d00ff432dd44971538c512465e19438f3ff.tar.xz
monzero-core-38756d00ff432dd44971538c512465e19438f3ff.zip
core: new API to disable DNS checkpoint lookups
Diffstat (limited to 'src/cryptonote_core/cryptonote_core.cpp')
-rw-r--r--src/cryptonote_core/cryptonote_core.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp
index 75d5f7a13..a4df27cd2 100644
--- a/src/cryptonote_core/cryptonote_core.cpp
+++ b/src/cryptonote_core/cryptonote_core.cpp
@@ -77,6 +77,7 @@ namespace cryptonote
m_checkpoints_path(""),
m_last_dns_checkpoints_update(0),
m_last_json_checkpoints_update(0),
+ m_disable_dns_checkpoints(false),
m_threadpool(tools::thread_group::optimal()),
m_update_download(0)
{
@@ -108,7 +109,7 @@ namespace cryptonote
//-----------------------------------------------------------------------------------------------
bool core::update_checkpoints()
{
- if (m_testnet || m_fakechain) return true;
+ if (m_testnet || m_fakechain || m_disable_dns_checkpoints) return true;
if (m_checkpoints_updating.test_and_set()) return true;