aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2015-04-09 00:10:18 +0200
committerRiccardo Spagni <ric@spagni.net>2015-04-09 00:14:04 +0200
commit7711359e14a16b3045b8e72e20d5c62d3353c339 (patch)
tree3a438fcce9e6a15944fe1a3cda4cae599d05e1d9
parentMerge pull request #256 (diff)
parentDisable DNS checkpoint updating on testnet (diff)
downloadmonero-7711359e14a16b3045b8e72e20d5c62d3353c339.tar.xz
Merge pull request #258
ae08be5 Disable DNS checkpoint updating on testnet (Thomas Winget)
-rw-r--r--src/cryptonote_core/cryptonote_core.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp
index 4754be43c..f6eaff2b1 100644
--- a/src/cryptonote_core/cryptonote_core.cpp
+++ b/src/cryptonote_core/cryptonote_core.cpp
@@ -98,6 +98,8 @@ namespace cryptonote
//-----------------------------------------------------------------------------------------------
bool core::update_checkpoints()
{
+ if (m_testnet) return true;
+
bool res = true;
if (time(NULL) - m_last_dns_checkpoints_update >= 3600)
{