mirror of
https://github.com/monero-project/monero.git
synced 2024-12-27 23:49:25 -05:00
updates: remove testnet case
It need not be any different
This commit is contained in:
parent
822577eb42
commit
5901331669
@ -35,7 +35,7 @@
|
|||||||
|
|
||||||
namespace tools
|
namespace tools
|
||||||
{
|
{
|
||||||
bool check_updates(const std::string &software, const std::string &buildtag, bool testnet, std::string &version, std::string &hash)
|
bool check_updates(const std::string &software, const std::string &buildtag, std::string &version, std::string &hash)
|
||||||
{
|
{
|
||||||
std::vector<std::string> records;
|
std::vector<std::string> records;
|
||||||
bool found = false;
|
bool found = false;
|
||||||
@ -50,10 +50,7 @@ namespace tools
|
|||||||
"updates.moneropulse.se"
|
"updates.moneropulse.se"
|
||||||
};
|
};
|
||||||
|
|
||||||
static const std::vector<std::string> testnet_dns_urls = { "testver.moneropulse.net"
|
if (!tools::dns_utils::load_txt_records_from_dns(records, dns_urls))
|
||||||
};
|
|
||||||
|
|
||||||
if (!tools::dns_utils::load_txt_records_from_dns(records, testnet ? testnet_dns_urls : dns_urls))
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
for (const auto& record : records)
|
for (const auto& record : records)
|
||||||
|
@ -32,6 +32,6 @@
|
|||||||
|
|
||||||
namespace tools
|
namespace tools
|
||||||
{
|
{
|
||||||
bool check_updates(const std::string &software, const std::string &buildtag, bool bestnet, std::string &version, std::string &hash);
|
bool check_updates(const std::string &software, const std::string &buildtag, std::string &version, std::string &hash);
|
||||||
std::string get_update_url(const std::string &software, const std::string &subdir, const std::string &buildtag, const std::string &version, bool user);
|
std::string get_update_url(const std::string &software, const std::string &subdir, const std::string &buildtag, const std::string &version, bool user);
|
||||||
}
|
}
|
||||||
|
@ -1101,7 +1101,7 @@ namespace cryptonote
|
|||||||
|
|
||||||
std::string version, hash;
|
std::string version, hash;
|
||||||
MCDEBUG("updates", "Checking for a new " << software << " version for " << buildtag);
|
MCDEBUG("updates", "Checking for a new " << software << " version for " << buildtag);
|
||||||
if (!tools::check_updates(software, buildtag, m_testnet, version, hash))
|
if (!tools::check_updates(software, buildtag, version, hash))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (tools::vercmp(version.c_str(), MONERO_VERSION) <= 0)
|
if (tools::vercmp(version.c_str(), MONERO_VERSION) <= 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user