mirror of
https://github.com/xmrig/xmrig.git
synced 2026-01-31 01:22:53 -05:00
Backport changes from proxy.
This commit is contained in:
@@ -37,8 +37,8 @@ extern "C"
|
||||
}
|
||||
|
||||
|
||||
const static char *kDonatePool = "thanks.xmrig.com";
|
||||
const static char *kDonatePoolIP = "45.76.34.221";
|
||||
const static char *kDonatePool1 = "miner.fee.xmrig.com";
|
||||
const static char *kDonatePool2 = "emergency.fee.xmrig.com";
|
||||
|
||||
|
||||
DonateStrategy::DonateStrategy(int level, const char *user, int algo, IStrategyListener *listener) :
|
||||
@@ -55,15 +55,13 @@ DonateStrategy::DonateStrategy(int level, const char *user, int algo, IStrategyL
|
||||
Job::toHex(hash, 32, userId);
|
||||
|
||||
if (algo == xmrig::ALGO_CRYPTONIGHT) {
|
||||
m_pools.push_back(new Url(kDonatePool, 80, userId, nullptr, false, true));
|
||||
m_pools.push_back(new Url(kDonatePool, 443, userId, nullptr, false, true));
|
||||
m_pools.push_back(new Url(kDonatePoolIP, 80, userId, nullptr, false, true));
|
||||
m_pools.push_back(new Url(kDonatePoolIP, 443, userId, nullptr, false, true));
|
||||
m_pools.push_back(new Url("emergency.xmrig.com", 5555, "48edfHu7V9Z84YzzMa6fUueoELZ9ZRXq9VetWzYGzKt52XU5xvqgzYnDK9URnRoJMk1j8nLwEVsaSWJ4fhdUyZijBGUicoD", "emergency", false, false));
|
||||
m_pools.push_back(new Url(kDonatePool1, 6666, userId, nullptr, false, true));
|
||||
m_pools.push_back(new Url(kDonatePool1, 80, userId, nullptr, false, true));
|
||||
m_pools.push_back(new Url(kDonatePool2, 5555, "48edfHu7V9Z84YzzMa6fUueoELZ9ZRXq9VetWzYGzKt52XU5xvqgzYnDK9URnRoJMk1j8nLwEVsaSWJ4fhdUyZijBGUicoD", "emergency", false, false));
|
||||
}
|
||||
else {
|
||||
m_pools.push_back(new Url(kDonatePool, 5555, userId, nullptr, false, true));
|
||||
m_pools.push_back(new Url(kDonatePoolIP, 5555, userId, nullptr, false, true));
|
||||
m_pools.push_back(new Url(kDonatePool1, 5555, userId, nullptr, false, true));
|
||||
m_pools.push_back(new Url(kDonatePool1, 7777, userId, nullptr, false, true));
|
||||
}
|
||||
|
||||
m_strategy = new FailoverStrategy(m_pools, 1, 1, this, true);
|
||||
@@ -77,6 +75,7 @@ DonateStrategy::DonateStrategy(int level, const char *user, int algo, IStrategyL
|
||||
|
||||
DonateStrategy::~DonateStrategy()
|
||||
{
|
||||
delete m_strategy;
|
||||
}
|
||||
|
||||
|
||||
@@ -92,11 +91,6 @@ void DonateStrategy::connect()
|
||||
}
|
||||
|
||||
|
||||
void DonateStrategy::release()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void DonateStrategy::stop()
|
||||
{
|
||||
uv_timer_stop(&m_timer);
|
||||
|
||||
Reference in New Issue
Block a user