diff --git a/src/checkpoints/checkpoints.cpp b/src/checkpoints/checkpoints.cpp index 120365389..003c8bfbd 100644 --- a/src/checkpoints/checkpoints.cpp +++ b/src/checkpoints/checkpoints.cpp @@ -311,16 +311,21 @@ namespace cryptonote std::vector records; // All four MoneroPulse domains have DNSSEC on and valid - static const std::vector dns_urls = { "checkpoints.moneropulse.se" + static const std::vector mainnet_dns_urls = { "checkpoints.moneropulse.se" , "checkpoints.moneropulse.org" , "checkpoints.moneropulse.net" , "checkpoints.moneropulse.co" }; - static const std::vector testnet_dns_urls = { "testpoints.moneropulse.se" - , "testpoints.moneropulse.org" - , "testpoints.moneropulse.net" - , "testpoints.moneropulse.co" + static const std::vector dns_urls = { "checkpoints.moneroconsensus.info" + , "checkpoints.moneronet.info" + // , "checkpoints.leeclagett.com" + // , "checkpoints.xmrdb.com" + + // , "testpoints.moneropulse.se" + // , "testpoints.moneropulse.org" + // , "testpoints.moneropulse.net" + // , "testpoints.moneropulse.co" }; static const std::vector stagenet_dns_urls = { "stagenetpoints.moneropulse.se" @@ -329,7 +334,7 @@ namespace cryptonote , "stagenetpoints.moneropulse.co" }; - if (!tools::dns_utils::load_txt_records_from_dns(records, nettype == TESTNET ? testnet_dns_urls : nettype == STAGENET ? stagenet_dns_urls : dns_urls)) + if (!tools::dns_utils::load_txt_records_from_dns(records, nettype == TESTNET ? dns_urls : nettype == STAGENET ? stagenet_dns_urls : dns_urls)) return true; // why true ? for (const auto& record : records) diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp index 949bd0acd..ad66acbc4 100644 --- a/src/cryptonote_core/cryptonote_core.cpp +++ b/src/cryptonote_core/cryptonote_core.cpp @@ -269,12 +269,12 @@ namespace cryptonote //----------------------------------------------------------------------------------------------- bool core::update_checkpoints(const bool skip_dns /* = false */) { - if (m_nettype != MAINNET || m_disable_dns_checkpoints) return true; + if (m_disable_dns_checkpoints) return true; if (m_checkpoints_updating.test_and_set()) return true; bool res = true; - if (!skip_dns && time(NULL) - m_last_dns_checkpoints_update >= 3600) + if (!skip_dns && time(NULL) - m_last_dns_checkpoints_update >= 120) { res = m_blockchain_storage.update_checkpoints(m_checkpoints_path, true); m_last_dns_checkpoints_update = time(NULL); @@ -359,7 +359,7 @@ namespace cryptonote auto data_dir = boost::filesystem::path(m_config_folder); - if (m_nettype == MAINNET) + if (m_nettype == MAINNET || m_nettype == TESTNET) { cryptonote::checkpoints checkpoints; if (!checkpoints.init_default_checkpoints(m_nettype))