Disable DNS checkpoint updating on testnet

This commit is contained in:
Thomas Winget 2015-04-08 18:07:46 -04:00
parent c41d14b2aa
commit ae08be5394
No known key found for this signature in database
GPG Key ID: 58131A160789E630

View File

@ -98,6 +98,8 @@ namespace cryptonote
//----------------------------------------------------------------------------------------------- //-----------------------------------------------------------------------------------------------
bool core::update_checkpoints() bool core::update_checkpoints()
{ {
if (m_testnet) return true;
bool res = true; bool res = true;
if (time(NULL) - m_last_dns_checkpoints_update >= 3600) if (time(NULL) - m_last_dns_checkpoints_update >= 3600)
{ {