aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core
diff options
context:
space:
mode:
authorThomas Winget <tewinget@gmail.com>2015-04-08 18:07:46 -0400
committerThomas Winget <tewinget@gmail.com>2015-04-08 18:07:46 -0400
commitae08be5394ff463ff8dc6d9aa77cc56586f01a63 (patch)
tree3a438fcce9e6a15944fe1a3cda4cae599d05e1d9 /src/cryptonote_core
parentMerge pull request #256 (diff)
downloadmonero-ae08be5394ff463ff8dc6d9aa77cc56586f01a63.tar.xz
Disable DNS checkpoint updating on testnet
Diffstat (limited to 'src/cryptonote_core')
-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)
{