aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/cryptonote_core.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-08-07 21:40:32 +0200
committerRiccardo Spagni <ric@spagni.net>2017-08-07 21:40:32 +0200
commita796cb341e13f6c32952b6c9c772a4157924c24e (patch)
treecd44153f2c90f17994a61f65c7a8160a85d7ed29 /src/cryptonote_core/cryptonote_core.cpp
parent3db039828eab03a5672981c1daedd4ce9f0287df (diff)
parentc93b7692b4362a7a76e4f0e65b0cee018d2b89ac (diff)
downloadmonzero-core-a796cb341e13f6c32952b6c9c772a4157924c24e.tar.gz
monzero-core-a796cb341e13f6c32952b6c9c772a4157924c24e.tar.xz
monzero-core-a796cb341e13f6c32952b6c9c772a4157924c24e.zip
Merge pull request #2207
c93b7692 blockchain_import: much faster when verifying with cryptonote::core (moneromooo-monero) 38756d00 core: new API to disable DNS checkpoint lookups (moneromooo-monero)
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;